Created
December 26, 2013 14:56
-
-
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
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
# 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