Select Page

Show current git repo in command prompt

Dan showed me at a snippet to slap into your ~/.bash_profile to display the current git branch in your prompt for the working directory (provided it’s a git repo). Very cool stuff. Here is my version with colours changes to suit my tastes: function...