Created
May 13, 2016 19:15
-
-
Save danleyb2/bf96293bb7fb2624af5a1e54350cb435 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Show current git branch in prompt. | |
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
L="\[\033[0;35m\]" | |
N="\[\033[01;38m\]" | |
PS1="\[\033[00m\]\[\033[01m\][ \[\033[0;35m\]\@\[\033[00m\]-\[\033[01;34m\]\u \[\033[00m\]\[\033[01m\]] \[\033[01;32m\]\w\[\033[0;33m\] \$(parse_git_branch)\n\[\033[01;34m\]$\[\033[00m\] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment