Skip to content

Instantly share code, notes, and snippets.

@kleberncto
Last active August 16, 2016 18:36
Show Gist options
  • Save kleberncto/3a84adb7726abe8b7321318390fdb428 to your computer and use it in GitHub Desktop.
Save kleberncto/3a84adb7726abe8b7321318390fdb428 to your computer and use it in GitHub Desktop.
Change PS1 colours to work with GIT
PS1='\[\033[0;37m\][\t]\[\033[0;32m\][\u]\[\033[31m\][\h]`git branch 2>/dev/null | grep \ | head -1 | sed "s/\ //g" | awk "{ print \"[ \"\\\$1 \" ]\" }"` \[\033[1;33m\]\w\a\[\033[0m\]\n\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment