Run the automatic installation script:
curl -Ls https://gist.github.com/dhnza/6b384f52ce32342761cc00f9d26311fa/raw/dotfiles-install.sh | /bin/bash
Clone dotfiles into a bare git repository. The git tracking information will be stored in ~/.dotfiles
.
git clone --bare [email protected]:dhnza/dotfiles.git ~/.dotfiles
For convenience, create a dotfiles
alias for managing the repositroy.
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
Disable showing files not tracked by the git repositry,
dotfiles config --local status.showUntrackedFiles no
Backup your existing configuration into ~/.dotfiles-backup
.
mkdir -p ~/.dotfiles-backup && dotfiles checkout 2>&1 | egrep '\s+\.' | xargs -i mv {} ~/.dotfiles-backup
Checkout your dotfiles to your $HOME
:
dotfiles checkout