-bash: __git_ps1: Command Not Found
Join the DZone community and get the full member experience.Join For Free
Today I updated mac ports and a new error started to show up at the command line saying that the __git_ps1 command is not found.
To fix it, you just need to include following lines in your .profile (or .bashrc):
if [ -f /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh ]; then . /opt/local/share/doc/git-core/contrib/completion/git-prompt.sh fi
It worked for me.
Depending on your git installation, this file may be located elsewhere; find command should help in this case.
Published at DZone with permission of Luigi Viggiano, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.