Skip to content

Instantly share code, notes, and snippets.

@raido
Last active September 2, 2015 12:14
Show Gist options
  • Save raido/436b7bba8e144fcc0fc6 to your computer and use it in GitHub Desktop.
Save raido/436b7bba8e144fcc0fc6 to your computer and use it in GitHub Desktop.
GNU nano 2.0.6 File: .bashrc
# Setup prompt
source ~/.git/scripts/git-prompt.sh
GIT_PS1_SHOWCOLORHINTS=true
GIT_PS1_SHOWDIRTYSTATE=true # * (unstaged) + (staged)
GIT_PS1_SHOWSTASHSTATE=true # $
GIT_PS1_SHOWUNTRACKEDFILES=true # %
GIT_PS1_SHOWUPSTREAM="git" # < behind, > ahead, <> diverged, = no diff
PROMPT_COMMAND='__git_ps1 "\u@\h:\w" "\\\$ "'
# Setup auto completion
source ~/.git/scripts/git-completion.bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment