An attempt to manage my dotfiles across an axis of multiple machines and multiple distros.
$ ./xbps.sh
$ ./mkdirs.sh
$ ./firefox.sh
$ ./stow.sh
$ git config core.hooksPath hooksxbps.shrequires root permsmkdirs.shcreate XDG directoriesfirefox.shcreate default profile for user prefscore.hooksPathinstall lint.sh hook in git for shellcheck
Treesitter grammars for custom languages in helix:
shell/.config/helix/grammars/<name>/ grammar.js, tree-sitter.json
shell/.config/helix/runtime/queries/<name>/ highlights.scm
shell/.config/helix/languages.toml lsp config
Generate and build grammars:
$ for lang in ~/.config/helix/grammars/*/; do (cd "$lang" && tree-sitter generate --abi 15); done
$ hx --grammar buildWin+Shift+? to run tool-handbook. Opens the handbook
(common/.local/share/handbook/handbook.typ) in helix with
the PDF viewer for live editing or reading.
Proprietary packages:
$ git clone https://github.com/void-linux/void-packages packages --depth 1 --recursive
$ cd packages
$ echo XBPS_ALLOW_RESTRICTED=yes >> etc/conf
$ ./xbps-src binary-bootstrap
$ ./xbps-src clean
$ ./xbps-src pkg -f <pkg>
$ ./xbps-src install <pkg>
$ sudo xbps-install --repository=hostdir/binpkgs/nonfree <pkg>Tmux usually has fucked up colours unless you compile the tmux-256color
terminfo file in ~/.local/share/terminfo/t/tmux-256color.terminfo using
tic <file>.
Setup system local configuration in ~/.gitconfig-local such as
user credentials or proxy configs on corporate networks.
Make sure to add public key to GitHub to allow pushing/pulling etc.
$ ssh-keygen -t ed25519 -C "me@mail.com"
$ eval "$(ssh-agent -s)" # Optionally add to ssh-agent or just add to ssh config.
$ ssh-add ~/.ssh/id_ed25519It is probably best to untrack this file after making local alterations.
$ git update-index --skip-worktree common/.gitconfig-local # From project rootFix permissions of GPG directory:
$ chown -R $(whoami) "${XDG_DATA_HOME}/gnupg/"
$ find "${XDG_DATA_HOME}/gnupg" -type f -exec chmod 600 {} \;
$ find "${XDG_DATA_HOME}/gnupg" -type d -exec chmod 700 {} \;