Archive for March, 2010

Add VC “branch” to your prompt

Inspired by a recent discussion on IRC, here’s another little piece of bash script goodness. This one goes in your startup files, and it integrates with your $PS1 prompt variable. The script adds your VC branch to the prompt. I’ve included SVN and GIT, and I’m sure you could trivially add CVS if need be. [...]