Skip to content

Instantly share code, notes, and snippets.

@bjornkri
Created November 6, 2012 15:05
Show Gist options
  • Save bjornkri/4025270 to your computer and use it in GitHub Desktop.
Save bjornkri/4025270 to your computer and use it in GitHub Desktop.
My git enabled bash prompt. Overrides parse_git_branch from git-completion (required)
RED="\[\033[0;31m\]"
GREEN="\[\033[0;32m\]"
DEFAULT="\[\033[00m\]"
GIT_PS1_SHOWDIRTYSTATE=true
PS1="[ $GREEN\W$DEFAULT ]$RED\$(__git_ps1)$DEFAULT\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment