Created
March 24, 2011 03:50
-
-
Save febbraro/884537 to your computer and use it in GitHub Desktop.
When using git (specifically on OSX installed from homebrew) get some good git command completion and a cool prompt
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
# Put this in your ~/.bash_profile | |
# Git command and tag/branch completion as well as putting the branch | |
# in your prompt including a "*" if it is dirty (changed) | |
. /usr/local/etc/bash_completion.d/git-completion.bash | |
export GIT_PS1_SHOWDIRTYSTATE=true | |
export PS1='\u@\h \[\033[1;33m\]\W\[\033[0m\]$(__git_ps1 "[%s]")\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment