Skip to content

Instantly share code, notes, and snippets.

@sterling
Last active April 29, 2017 16:49
Show Gist options
  • Save sterling/1681f19a8380491672c3407028de3520 to your computer and use it in GitHub Desktop.
Save sterling/1681f19a8380491672c3407028de3520 to your computer and use it in GitHub Desktop.
My PS1 including git info
. ~/.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