Skip to content

Instantly share code, notes, and snippets.

@ledbettj
Created June 15, 2012 17:21
Show Gist options
  • Select an option

  • Save ledbettj/2937691 to your computer and use it in GitHub Desktop.

Select an option

Save ledbettj/2937691 to your computer and use it in GitHub Desktop.
GIT_BASH_COMPLETE="/usr/local/Cellar/git/1.7.10/etc/bash_completion.d/git-completion.bash"
if [ -f "$GIT_BASH_COMPLETE" ]; then
. $GIT_BASH_COMPLETE
GIT_BRANCH='$(__git_ps1 "|\[\e[0;32m\]%s\[\e[m\]")'
fi
export PS1="\[\e[1;34m\]\u@\h:\[\e[m\]\w"$GIT_BRANCH"\$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment