- Clone this repository.
git clone --bare git@github.com:varunk122/dotfiles.git $HOME/dotfiles
2 . Add this alias to .bashrc / .zshrc
alias config='/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME'
-
Refresh your current shell or open a new shell
-
Checkout the actual content form the bare repository to your $HOME
config checkout
mkdir -p .config-backup && \
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | \
xargs -I{} mv {} .config-backup/{}