How to get git-completion.bash to work on Mac OS X?

Posted by n179911 on Super User See other posts from Super User or by n179911
Published on 2009-08-29T00:49:19Z Indexed on 2010/04/24 10:43 UTC
Read the original article Hit count: 278

Filed under:
|
|

Hi,

I have followed http://blog.bitfluent.com/page/3 to add git-completion.bash to my /opt/local/etc/bash_completion.d/git-completion

and I put PS1='\h:\W$(__git_ps1 "(%s)") \u\$ ' in my .bashrc_profile

But now I am getting this -bash: __git_ps1: command not found everything I do a cd.

Can you please tell me what am I missing?

© Super User or respective owner

Related posts about mac

Related posts about osx