Join the DZone community and get the full member experience.
Join For Free
The DevOps zone is brought to you in partnership with Sonatype Nexus. The Nexus suite helps scale your DevOps delivery with continuous component intelligence integrated into development tools, including Eclipse, IntelliJ, Jenkins, Bamboo, SonarQube and more. Schedule a demo today.
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.
This is because I added the git branch in my bash prompt long time back and in last update of git-core port they moved the __git_ps1 bash functions to a separate script.
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
It worked for me.
Depending on your git installation, this file may be located elsewhere; find command should help in this case.
The DevOps zone is brought to you in partnership with Sonatype Nexus. Use the Nexus Suite to automate your software supply chain and ensure you're using the highest quality open source components at every step of the development lifecycle. Get Nexus today.
Published at DZone with permission of
Luigi Viggiano, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.