On all my machines ~/.vimrc and friends are symlinked out from my Dropbox folder.
dropbox-update-dotfiles () {
src="$HOME/Dropbox/dotfiles"
dst="$HOME"
if [[ ! -d "$src" ]]; then
print "Directory $src not found."
fi
for f in "$src"/*~*(.swp|~|.pyc)(D); do
if [[ -h "$dst/${f:t}" ]]; then
# exists as symlink
elif [[ -e "$dst/${f:t}" ]]; then
print "WARNING: ${f:t} exists, but is not a symlink."
else
ln -sv "$f" "$dst"
fi
done
}I link my dot files as well as Documents, Pictures, Music, and Desktop directories that are also normally controlled by OSX. Having those shared across multiple computers is awesome. Sit down at a computer, and it's there.
I also have my zsh files checked in to bitbucket (https://bitbucket.org/tednaleid/shared-zshrc/) so even if the computer doesn't have dropbox (like many of the linux servers I have access to), as long as it has mercurial, I can clone the repo and be ready to go.