Sunday, February 1. 2009

git prompt addition

Now that I'm using git all the time, it's helpful to have bash show me what branch I'm on, and whether the working directory is dirty. I found a gist by Henrik Nyh that does just this. I souped it up a little bit to be more efficient and handle a few extra situations. Here's the result: [EDIT: I have updated this gist since this post was made; the current version is based on git-completion.sh in the git distribution]

Please use it if you like, and fork the gist if you make any improvements!


Trackbacks

No Trackbacks

Comments
Display comments as (Linear | Threaded)

No comments

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
 
 

Notice

The postings on this site are my own and don't necessarily represent the opinions of Zmanda, Inc.