-
-
Save samuelkobe/5ec49165c59442182c50 to your computer and use it in GitHub Desktop.
bash git stuff
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
function parse_git_branch () { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
BLUE="\[\e[1;34m\]" | |
RED="\[\033[0;31m\]" | |
LIGHTBLUE="\[\e[0;36m\]" | |
GREEN="\[\033[0;32m\]" | |
NO_COLOUR="\[\033[0m\]" | |
PS1="$GREEN""KOBE$BLUE \w$LIGHTBLUE\$(parse_git_branch) $NO_COLOUR\$ " PATH="/usr/local/bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment