Monday, February 23, 2009

Showing current branch for GIT in bash profile

Add into ~/.bashrc

PS1='\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[31m\]$(__git_ps1 "(%s)") \[\033[01;34m\]$\[\033[00m\] '

Thanks to http://www.shaldybin.com/2008/11/small-surprise-from-git-16.html

No comments: