A remote back up of all my lovely dots
They were created using a bare git repository following this atlassian post, which was in turn inspired by this Hacker News comment
A summary of the creation process:
git init --bare $HOME/.dotfiles
alias dotfiles='$(which git) --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config --local status.showUntrackedFiles no
The alias can then be added to the dots of your favorite shell for future use (and backed up in the repo).
dotfiles add /PATH/TO/FILE
dotfiles commit -m "Add FILE"
In order to use the .zshrc in its current location, $ZDOTDIR needs to be set to ~/.config/zsh.
This can be done by editing /etc/security/pam_env.conf
to include:
XDG_CONFIG_HOME DEFAULT=@{HOME}/.config
ZDOTDIR DEFAULT=${XDG_CONFIG_HOME}/zsh