Git aware prompt

February 12 2014 Last modified: August 19 2014

I love using git via commands. And it is very often that I have to run git status or git branch to check if I am on the right branch or I am doing anything correct. Git aware prompt displays the current branch and status of the current directory.

The code was originated from here but I have made significant amount of changes, for example, adding color support and some bugs fixing.

To use this, add the following to your .bashrc and restart your terminal!

blog comments powered by Disqus