Created
June 13, 2009 14:51
-
-
Save mss/129278 to your computer and use it in GitHub Desktop.
Append this to your .bashrc to have the current Git branch prepended to your Bash 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
if [ "$(type -t __git_ps1)" ]; then | |
PS1="\$(__git_ps1 '(%s)')$PS1" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment