Skip to content

Instantly share code, notes, and snippets.

@joyrexus
Last active December 19, 2015 22:59
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 joyrexus/6031830 to your computer and use it in GitHub Desktop.
Save joyrexus/6031830 to your computer and use it in GitHub Desktop.
Git-enhanced prompt and tab-completion for bash.
. /usr/local/etc/bash_completion # tab completion
. /usr/local/etc/bash_completion.d/git-prompt.sh # git-enhanced prompt
GREEN="\[\033[0;32m\]"
ORANGE="\[\033[0;33m\]"
BLUE="\[\033[0;34m\]"
RESET="\[\033[0m\]"
PS1="${GREEN}\w${BLUE}\$(__git_ps1 ':%s')${ORANGE}⚡${RESET} " # show git branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment