Monday, 13 May 2013

including __git_ps1 in your osx bash

Just a little note, on modifying bash for osx (I'm running mountain lion - 10.8.2). To achieve something like this:
me@My-MacBook-Pro:~/Projects/project_name(master)$
add this on your ~/.bash_profile :
source /usr/share/git-core/git-completion.bash
export PS1='\u@\h:\w$(__git_ps1 "(%s)")$ '

No comments:

Post a Comment