Git bare repo repo holding dotfiles.
Steps to get setup on new machine:
# Avoid any funky recursion
echo ".cfg" >> .gitignore
# clones bare this repository into "$HOME"
git clone --bare [email protected]:hqkhan/dotfiles.git $HOME/.cfg
# Create temporary alias
alias dot='git -c status.showUntrackedFiles=no --git-dir=$HOME/.cfg/ --work-tree=$HOME -C ${HOME}'
# Ignore all untracked files
dot config --local status.showUntrackedFiles no
# Resetting to HEAD
dot reset --hard HEAD
# Create symlink for fugitive to work with bare repo
ln -sf $HOME/.cfg $HOME/.git
# Remove origin & re-add to fix lazygit's tracking
dot remote remove origin
dot remote add origin [email protected]:hqkhan/dotfiles.git
# Run bootstrap script to get all goodies
./dots/bootstrap