Skip to content

Instantly share code, notes, and snippets.

@germanramos
Last active August 29, 2015 14:10
Show Gist options
  • Save germanramos/3944990c8e36383b6c6f to your computer and use it in GitHub Desktop.
Save germanramos/3944990c8e36383b6c6f to your computer and use it in GitHub Desktop.
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