I have 2 Macbooks: one at work and one at home. I sync them using Dropbox. I sync lots of things: iTunes library, dotfiles, some ~/Library/Preferences/
.
For example, I have a ~/.profile
file in my home machine. I want to have the same file in my work machine. So I do the following:
$ cp ~/.profile ~/Dropbox/Mac/Users/nv/.profile
On the work machine I do:
$ cp ~/Dropbox/Mac/Users/nv/.profile ~/.profile
To save some typing, I’ve written a couple of scripts:
$ save .profile
/Users/nv/.profile -> /Users/nv/Dropbox/Mac/Users/nv/.profile
$ restore .profile
/Users/nv/Dropbox/Mac/Users/nv/.profile -> /Users/nv/.profile