Last active
August 29, 2015 14:10
-
-
Save germanramos/3944990c8e36383b6c6f to your computer and use it in GitHub Desktop.
Bash prompt with git info and completition and colors
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
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