Copy following code to the root .bash_profile after clonning 'dotfiles' repo to your /git folder export DIR=~/git/dotfiles/; source $DIR.bash_profile; My dotfiles repo is open at: https://github.com/bernardolemgruber/dotfiles