Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function color_my_prompt {
- local __user_and_location="\n\[\e[32;1m\](\[\e[37;1m\]\u\[\e[32;1m\])-(\[\e[37;1m\]\w\[\e[32;1m\])"
- local __git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
- local __prompt="\n$\[\e[0m\]"
- export PS1="$__user_and_location $__git_branch $__prompt "
- }
- color_my_prompt
Add Comment
Please, Sign In to add comment