Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash prompt with git info and completition and colors
In .bash_profile (or .bashrc):
# Git completion
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-completion.bash
source /Applications/Xcode.app/Contents/Developer/usr/share/git-core/git-prompt.sh
# My prompt
#http://ubuntulife.files.wordpress.com/2011/04/bashcolor.png
export PS1='\e[01;36m\]\u:\[\e[01;33m\]\w $(__git_ps1 "(%s)")\[\e[0m\]\n>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment