My collection of dotfiles.
A practical git-only technique for managing dotfiles using git I learned about here and here.
To get things set up:
git init --bare $HOME/.dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
dotfiles config status.showUntrackedFiles no
# add the alias to your bashrc
echo "alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/--work-tree=$HOME'" >> $HOME/.bashrc
Now manage your dotfiles using basic git commands:
dotfiles status
dotfiles add .vimrc
dotfiles commit -m "Add vimrc"
dotfiles push