Created
September 3, 2012 10:09
-
-
Save shameerc/3608297 to your computer and use it in GitHub Desktop.
Show Git branch name on shell prompt
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
# this will show current branch name of repository in shell prompt | |
# add this in ~/.bashrc | |
export PS1="\\[\033[1;55m\]\w\$(__git_ps1 ' [%s]') \$ " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice one man!