Skip to content

Instantly share code, notes, and snippets.

@vbmendes
Created June 4, 2011 14:00
Show Gist options
  • Save vbmendes/1007920 to your computer and use it in GitHub Desktop.
Save vbmendes/1007920 to your computer and use it in GitHub Desktop.
Git completion and PS1 customization
source /usr/local/Cellar/git/1.7.5.4/etc/bash_completion.d/git-completion.bash # path to git completion
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWUPSTREAM="verbose"
PS1='\[$(tput setf 3)\]\u\[$(tput sgr0)\]: \[$(tput setf 6)\]\w \[$(tput setf 2)\]$(__git_ps1 "(%s)")\n\[$(tput bold)$(tput setf 6)\]$ \[$(tput sgr0)\]'
source ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment