-
-
Save kleberncto/3a84adb7726abe8b7321318390fdb428 to your computer and use it in GitHub Desktop.
Change PS1 colours to work with GIT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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