Skip to content

Instantly share code, notes, and snippets.

@febbraro
Created March 24, 2011 03:50
Show Gist options
  • Save febbraro/884537 to your computer and use it in GitHub Desktop.
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
# 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