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) $
Written by Jorge de los Santos Lanzas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#