fooberry

Sweetness without context.

My Colorful Git Prompt

July 27th 2010

We all like color dont we? We also love the command line right? Well, if you dont, you should love it. There is nothing I hate more than seeing a screen full of gray text. You can provide a lot of context via color, especially in your prompt.

Take my git prompt for example.  I easily know if I have any changes in the branch, if Im staging changes and an overview of the changes.

image

This is done in PowerShell. If youre still using cmd as your shell, you should stop immediately. Especially if you use git. I highly recommend checking out posh-git. Auto-complete on git commands and branch names is awesome.

Also, you can checkout the source for this prompt. Figuring out all the changes takes some time on a large codebase, but for me its worth it.

blog comments powered by Disqus