I\'m trying to change my command promt in terminal. I keep getting the error:
-bash: __git_ps1: command not found
I\'ve tried it just by typing
I had same problem when upgrading to Yosemite.
I just had to modify ~/.bashrc to source /usr/local/etc/bash_completion.d/git-prompt.sh instead of the old path.
~/.bashrc
source /usr/local/etc/bash_completion.d/git-prompt.sh
then re-source your . ~/.bashrc to get the effect.
. ~/.bashrc