Created
November 12, 2011 06:35
-
-
Save jamztang/1360140 to your computer and use it in GitHub Desktop.
.profile show git branch
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
export PS1="[\u@\h \W\$(git branch 2> /dev/null | grep -e '\* ' | sed 's/^..\(.*\)/(\1)/')]\$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment