Last Updated: February 25, 2016
·
521
· tebayoso

Custom GIT shell PS1

To see the git branch in the command line in colour use this environment variable:

PS1="\[\033[01;32m\]\h\[\033[01;34m\] \w\[\033[01;33m\]\$(_gitps1)\[\033[01;34m\] \\$\[\033[00m\] "

machine ~/folder/python/ (master) $