Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
#shows your current git branch in bash in blue. Very cool :)
#Put this at the end of your ~/.bashrc file under Linux
function bash_git_branch
git branch 2> /dev/null | grep \* | python -c "print '['+raw_input()[2:]+']'" 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.