holman / dotfiles

@holman does dotfiles
http://zachholman.com/2010/08/dotfiles-are-meant-to-be-forked/
MIT License
7.35k stars 3.36k forks source link

Allow nested symlinks #295

Closed sporkd closed 1 year ago

sporkd commented 6 years ago

This allows you to create symlinks not just in the top level $HOME directory, but also inside nested directories so you can track files like $HOME/.ssh/config. You use + signs to signify additional directory delimiters on files with the .symlink extension. A great example is instead of symlinking the entire ~/.config directory into source control, you can now just track the nested ~/.config/nvim directory.

Examples: .dotfiles/ssh+config.symlink -> ~/.ssh/config .dotfiles/ssh/ssh+config.symlink -> ~/.ssh/config .dotfiles/vim/config+nvim.symlink -> ~/.config/nvim .dotfiles/vim/config+nvim+init.vim.symlink -> ~/.config/nvim/init.vim