Skip to content

Instantly share code, notes, and snippets.

@mattsnyder
Created December 26, 2013 14:56
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 mattsnyder/8134747 to your computer and use it in GitHub Desktop.
Save mattsnyder/8134747 to your computer and use it in GitHub Desktop.
Configure Bash prompt to perform Git command completion and show Git repo info
# Symlink the completion and prompt scripts from your Git install to your home directory
# Then add the following to your .bash_profile
source ~/git-completion.bash
source ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1
export PS1='\033[00;36m\]\W\[\033[01;37m\]$(__git_ps1)\[\033[01;36m\] \$\[\033[00m\] '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment