Git and Mercurial branches in your bash prompt

Git ships with a tiny utility __git_ps1 that displays your current branch in your bash prompt. For Mercurial is a similiar project on Bitbucket available, however it's slow. In fact; it's so slow, you can't work with your shell anymore.

Jannis pointed me to another project called vcprompt which is written in C and currently supports Git and Mercurial. And it's as nearly fast as the __git_ps1 utility. :-)

http://static.mahner.org/assets/weblog/vcprompt.png


↑ to the elevators

© 2001—2012 Martin Mahner. This is an I ♥ Django Project.

Admin | Generated: Sat, 4 Feb 2012 08:12:45 +0100