Created
October 30, 2014 22:46
-
-
Save npassaro/61caecf9762ebad7b454 to your computer and use it in GitHub Desktop.
.bashrc prompt showing git branch and coloring
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
# Custom bash prompt via kirsle.net/wizards/ps1.html | |
source /usr/share/git-core/contrib/completion/git-prompt.sh | |
export PS1="[\[$(tput setaf 5)\]\u\[$(tput setaf 2)\]@\h\[$(tput setaf 6)\]\[$(tput bold)\] \W\[$(tput sgr0)\]\$(__git_ps1)]\\$ \[$(tput sgr0)\]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment