Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # color branch github
- function parse_git_branch () {
- git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
- }
- RED="\[\033[01;31m\]"
- YELLOW="\[\033[01;33m\]"
- GREEN="\[\033[01;32m\]"
- BLUE="\[\033[01;34m\]"
- NO_COLOR="\[\033[00m\]"
- PS1="$GREEN\u@\h$NO_COLOR:$BLUE\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ "
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement