Skip to content

Instantly share code, notes, and snippets.

@jsbalsera
Created May 22, 2014 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jsbalsera/622e758d4bde73fe6f3b to your computer and use it in GitHub Desktop.
Save jsbalsera/622e758d4bde73fe6f3b to your computer and use it in GitHub Desktop.
Configuring PS1 to show git branch and status
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export GIT_PS1_SHOWSTASHSTATE=true
export PS1='\[\033[1;34m\]\u\[\033[0;30m\]@\[\033[0;32m\]\w\[\033[0;30m\]$(__git_ps1 " [\[\e[31;1m\]%s\[\e[0m\]]")\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment