(Mac) -bash: __git_ps1: command not found
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 it into the terminal as is: __git_ps1 . I've also tried it out in the .bash_profile if [ -f ~/.git-completion.bash ]; then source ~/.git-completion.bash export PS1='[\W]$(__git_ps1 "(%s)"): ' fi As you might be able to see/tell, yes, I do have the auto-completion installed and it does work great! I came across this question: " PS1 env variable does not work on mac " which gives the code alias __git_ps1="git branch 2>/dev/null | grep '*' | sed 's/* \(.*\)