Last Updated: February 25, 2016
·
2.454K
· lccro

Share your dotfiles using Dropbox

Instead of setting up a GIT repo in your home folder, simply do:

mkdir ~/Dropbox/dotfiles # or moral equivalent
mv ~/.vim ~/.vimrc ~/.zshrc ~/.zshenv ~/Dropbox/dotfiles
ln -sf ~/Dropbox/dotfiles/.[a-z]* .

Now repeat the last line on all your machines and voilá! Instant environment sync!

My dotfiles folder contains as of now:

.ackrc
.caprc
.cloudapp
.gemrc
.gitconfig
.gitignore_global
.gvimrc.after
.htoprc
.inputrc
.irbrc
.janus
.oh-my-zsh
.phpsh
.pry_history
.pryrc
.railsrc
.rvmrc
.ssh
.tm_properties
.tmux.conf
.tmuxinator
.vim
.vimrc.after
.zcompdump
.zsh-update
.zsh_history
.zshenv
.zshrc
alfredapp
bin

Now I can work from the desktop or notebook even sharing shell history.

Validated on OSX and Linux.