Last active
April 29, 2017 16:49
-
-
Save sterling/1681f19a8380491672c3407028de3520 to your computer and use it in GitHub Desktop.
My PS1 including git info
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
. ~/.git-prompt.sh | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWCOLORHINTS=true | |
GIT_PS1_SHOWUNTRACKEDFILES=true | |
GIT_PS1_SHOWUPSTREAM=verbose | |
PS1="\[\033[0;30m\]\@ \[\033[0;30m\]\w\n\[\033[0;30m\]\u\[\033[0;32m\] [\W\[\033[01;38;5;022m\]\$(__git_ps1 \" %s\")\[\033[0;32m\]]\[\033[0;30m\] $ \[\033[0m\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment