I really like Dropbox. It's a convienient way to sync all your
computers without using rsync and what not. However, the thing that
bugs me the most is keeping my dotfiles in sync as I usualyl forget to
sync between computers when I change them. Thanksfully, Dropbox makes
this easier.
1. Create a directory in your Dropbox folder.
2. Move your dotfiles from $HOME to that folder. Change the prefix . with _.
3. Add this file (I named it dotfiler.sh, but you can name it whatever you want)
#!/bin/sh
for file in _*
do
ln -s -n -f `pwd`/$file $HOME/${file/#_/.}
done
4. chmod +x the new file. (Currently, executable flag doesn't move
from one machine to another. So probably have to do this on each
machine.)
5. Run the file in your not dotfiles directory.
This should keep all your dotfiles in sync whatever computer you are
using. If you also added .profile and .bashrc make sure that you take
your platform into account i.e., Linux, Mac OS X.
Run the script whenever you add a new dotfile.