Skip to content

Instantly share code, notes, and snippets.

@jillesvangurp
Created May 26, 2012 08:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jillesvangurp/2792994 to your computer and use it in GitHub Desktop.
Save jillesvangurp/2792994 to your computer and use it in GitHub Desktop.
profile tweak to get custom git prompt
# 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