Here I store all my dotfiles.
Taken from Bitbucket.
Steps:
-
Clone repo:
git clone --bare <git-repo-url> $HOME/.cfg
-
Setup git:
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
config config --local status.showUntrackedFiles no
-
Checkout the actual content:
config checkout
-
Use like any other repository:
config status config add .vimrc config commit -m "Add vimrc" config add .bashrc config commit -m "Add bashrc" config push
My Zsh config.
My Neovim config.
My i3 config.