-bash: __git_ps1: command not found

Run the following:

$ curl -L https://raw.github.com/git/git/master/contrib/completion/git-prompt.sh > ~/.bash_git

And add this to the top of your ~/.bashrc:

source ~/.bash_git

Re-login to your shell and you should be set.

Leave a Comment