Created
May 26, 2012 08:55
-
-
Save jillesvangurp/2792994 to your computer and use it in GitHub Desktop.
profile tweak to get custom git 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
# brew install bash_completion for this to work ... | |
if [ -f `brew --prefix`/etc/bash_completion ]; then | |
. `brew --prefix`/etc/bash_completion | |
fi | |
# add current git branch to prompt | |
PS1='\h:\w\[\033[32m\]$(__git_ps1) \[\033[0m\]$ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment