Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Bash prompt with git info and completition and colors
In .bash_profile (or .bashrc):
# Git completion
source /Applications/
source /Applications/
# My prompt
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