Created
June 14, 2012 11:42
-
-
Save ConstantineLignos/2929803 to your computer and use it in GitHub Desktop.
Bash PS1 with user@host, full path, and git_ps1, each in their own color
This file contains hidden or 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
GIT_PS1_SHOWDIRTYSTATE=1 | |
PS1='[\[\e[1;32m\]\u@\h \[\e[1;36m\]\w\[\e[1;35m\]$(__git_ps1 " (%s)")\[\e[0m\]]\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment