Skip to content

Instantly share code, notes, and snippets.

@ianstarz
Created April 7, 2015 17:42
Show Gist options
  • Save ianstarz/05df6564a9a671cd77e6 to your computer and use it in GitHub Desktop.
Save ianstarz/05df6564a9a671cd77e6 to your computer and use it in GitHub Desktop.
# Turn on git state in command prompt
GIT_PS1_SHOWDIRTYSTATE=true
# Command prompt with "username path (git state) | "
export PS1='\[\033[1;37m\]\u \[\033[0m\]\w$(__git_ps1)\[\033[1;37m\] | \[\033[0m\]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment