Git Macro and Auto Completion

This lil hack really helps when using Git cli. Basically the script will auto-detect if you are in a git repository, display the current branch as well as different colors depending on the status.

You will need to put this in your .bash_profile (these are Mac OS X specific instructions, not sure how to do it on a Windows box, on a *nix box- you should be able to use .bashrc)

source ~/
source ~/

PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "'

You will need to copy git-completion.bash to and to in your home directory.

You can get it here