Created
January 19, 2012 22:47
-
-
Save hurshagrawal/1643472 to your computer and use it in GitHub Desktop.
Show git branch in bash
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
# Show branch in status line | |
PS1='[\W$(__git_ps1 " (%s)")]\$ ' | |
export PROMPT_COMMAND='echo -ne "\033]0;${PWD/#$HOME/~}\007"' |
Author
hurshagrawal
commented
Jan 19, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment