ys4rfg
Last Updated: February 25, 2016
·
799
· incognito

Use GNU Stow for your dotfiles

You want to keep a nice repo in git of all your dotfiles, but copying them back and forth is a lot of work, and creating a repo in your home directory is problematic.

Enter GNU Stow

brew install stow # or any package manager
mkdir ~/dotfiles
cd dotfiles
mkdir vim
touch vim/.vimrc
git add vim
git commit -m "Adds vim files to repo"
stow vim #Drops everything inside vim/* to ~/
stow -D vim # Uninstalls vim files