Skip to content

Instantly share code, notes, and snippets.

@KushalP
Created January 10, 2013 14:36
Show Gist options
  • Save KushalP/4502481 to your computer and use it in GitHub Desktop.
Save KushalP/4502481 to your computer and use it in GitHub Desktop.
Git prompt (PS1)
source /etc/bash_completion.d/git
export GIT_PS1_SHOWDIRTYSTATE=true
export GIT_PS1_SHOWUNTRACKEDFILES=true
export PS1="\e[0;33m\u@\h \w\e[0;32m\$(__git_ps1 ' (%s)')\e[0;96m \$\e[0m "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment