Created
April 11, 2011 21:14
-
-
Save EstebanMDQ/914360 to your computer and use it in GitHub Desktop.
this snippet must be added to your .bashrc in order to allow your prompt show the branch you are using
This file contains hidden or 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
export PS1='\[\033[00;30m\]\u \[\033[00;34m\]\w\[\033[00m\]\[\033[00;31m\]`git branch 2>/dev/null|cut -f2 -d\* -s` \[\033[00m\]\$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment