我已经按照http://blog.bitfluent.com/post/27983389/git-utilities-you-cant-live-without添加git-completion.bash
到我的/opt/local/etc/bash_completion.d/git-completion
然后我输入PS1='\h:\W$(__git_ps1 "(%s)") \u\$ '
了我的 .bashrc_profile
但现在我得到了-bash: __git_ps1: command not found
我所做的一切cd
。
你能告诉我我错过了什么吗?