« Witch - Advanced window switching | Main | Emacs tips, keystrokes, usage cases, etc »

Sharing bash_profile amongst computers

I got tired of having unnecessary differences in my .bash_profile file amongst the computers I use regularly. So, I moved to a system where I keep a universal bash_profile in Dropbox and have the local .bash_profile file call it. This allows local definitions as necessary, but propagates universal definitions everywhere.

My universal bash_profile is in ~/Dropbox/dot_files/bash_profile.

On any given computer the first line of .bash_profile is:

source ~/Dropbox/dot_files/bash_profile