Skip to content

Instantly share code, notes, and snippets.

@davedevelopment
Created January 5, 2012 13:04
Show Gist options
  • Save davedevelopment/1565175 to your computer and use it in GitHub Desktop.
Save davedevelopment/1565175 to your computer and use it in GitHub Desktop.
Git bash prompt
# .bashrc
export GIT_PS1_SHOWDIRTYSTATE="true";
export GIT_PS1_SHOWSTASHSTATE="true";
export GIT_PS1_SHOWUNTRACKEDFILES="true";
export GIT_PS1_SHOWUPSTREAM="verbose"
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:$(__git_ps1 [%s])\[\033[01;34m\]\W\[\033[00m\]\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment