Reminds me of this, which I have been rocking in my .bash_profile for many months now:
http://muness.blogspot.com/2008/06/bash-dont-make-me-think.html
For git and svn, it displays branch name and current revision # at the prompt. it also abstracts a few vc commands.
http://muness.blogspot.com/2008/06/bash-dont-make-me-think.html
For git and svn, it displays branch name and current revision # at the prompt. it also abstracts a few vc commands.
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
PSGIT='\[\033[01;31m\]$(__git_ps1 "(%s)")\[\033[00m\]'
PS1="${PSGIT}${PS1}"
fi