3 ms·
What I do is just have a ~/git/dotfiles repo, and then 'ln -s ~/git/dotfiles/vimrc ~/.vimrc' (and there is a script to dot his in the repo). Same with .bashrc,
by chubot 11y ago
What I do is just have a ~/git/dotfiles repo, and then 'ln -s ~/git/dotfiles/vimrc ~/.vimrc' (and there is a script to dot his in the repo). Same with .bashrc, etc. You an use the same repo or different repos.
How is this better?
- ohthehugemanate 11y agoExactly what I do. It has the added benefit of only requiring the systems I already require (bash and git), so no extra software install or learning.
- daveguy 11y agoThis eliminates the ln -s ~git/dotfiles/vimrc ~/.vimrc step. Or more specifically, allows you to have any number of subsets of files contained in a single directory (or subdir) as members of different repositories.
- chubot 11y agoYeah, but I'd rather just have a 5 line shell script in my repo listing all the files it manages, rather than entirely new tool. I think it's overkill for dotfiles. A shell script works.
- vok5 11y agoYou could also use GNU Stow, which is a symlink farm manager. Here's an example on how to use it with dotfiles: https://github.com/dmarcoux/dotfiles https://github.com/dmarcoux/dotfiles
- unfunco 11y agoI maintain a single dotfiles repository also, and have found RCM by Thoughtbot[0] to be an excellent tool for managing said dotfiles. [0]: https://github.com/thoughtbot/rcm https://github.com/thoughtbot/rcm