19 Dec 2007

Git branch in prompt (with svn support)

I like having my git branch in my prompt, but I sadly still have to use subversion sometimes. So, I hacked something together (mostly out of this script for vcs info in your prompt) that gives either the current git branch or the current svn revision. In my .bash_profile, I include this file with `source ~/sw/bash/vcs-prompt.bash`.