First, install stow. Then, clone your dotfiles repo to ~/dotfiles or similar.
Stow symlinks to the home folder. So if you wanted to stow your nvim config, for example:
- Make folder
~/dotfiles/nvim/.config - Move active config into this folder:
mv ~/.config/nvim ~/dotfiles/nvim/.config/nvim cd ~/dotfilesthenstow nvimto symlin its contents to ~, ie, right where they should be.
Then if setting up on a new machine, just clone dotfiles and go straight to stow nvim from the dotfiles folder to "pop out" that config into place.