Moving .bash_profile to Dropbox

bashcommand line

I'd like to move my .bash_profile to Dropbox to have my custom Terminal functions available on all my Macs. Is this possible and are there possible implications?

For example I have a command for doing a git add and commit in one go:

function gax() {
    git add .
    git commit -m "$1"

I've been unable to find any information about this.

Best Answer

  • You can have additional file in Dropbox folder and then on every machine inside your .bash_profile file put this:

    if [ -f $FILE ];
        source $FILE
  • Related Question