Synchronization of dotfiles has been documented to death in many blogs. But, I just wanted to show how I do it:
- Initialize (
git init) a repository called dotfiles anywhere on your filesystem (I do it in
- Copy your dotfiles to this directory, and arrange them in whatever order you want and add them to your git repository.
- Now, tweak the line#2 in the following script to include your dotfiles or folders and run it.
- Now, to sync your dotfiles seamlessly between your machines. You just need a remote git server (It can be your own using gitosis , or you can put it on github ). I use github to store my dotfiles. Just push your dotfiles to your remote server clone it on another machine run the
setup.rband bam, you’re in business.
This way you don’t have to copy/paste the files when you make changes to them. Just change the file, commit and push, and pull it on the other machines.