Colored Git Prompt

My Git prompt: gist.github.com/29138

 

Shows the current branch name. The red star tells me that my repository is dirty.

 

I find this very useful every day. But sometimes, as when going into my MP3 directory, 'git status' takes a very long time to complete scanning over 300GB, so I added a file named '.git-prompt-disable' in the MP3 dir and I don't get the red star.

772 views
0 faves
1 comment
Taken on April 9, 2009