Created
June 4, 2011 14:00
-
-
Save vbmendes/1007920 to your computer and use it in GitHub Desktop.
Git completion and PS1 customization
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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