(Mac) -bash: __git_ps1: command not found

后端 未结 19 2094
感动是毒
感动是毒 2020-11-30 16:20

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

19条回答
  •  孤街浪徒
    2020-11-30 17:02

    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.

    then re-source your . ~/.bashrc to get the effect.

提交回复
热议问题