Skip to main content

Posts

Showing posts from September, 2011

Show Git / Mercurial / SVN / Bazaar branch in the Bash prompt

This is my solution for modifying the Bash prompt (PS1) to show the branch name. It works for any working directory in a Git, Mercurial, Subversion or Bazaar branch. [2 minutes]