add host color

This commit is contained in:
Barak Michener 2020-11-03 13:17:18 -08:00
parent fefb13530f
commit 1f042392b3
2 changed files with 12 additions and 3 deletions

11
.zshrc
View file

@ -73,8 +73,17 @@ PR_NO_COLOUR="%{$terminfo[sgr0]%}"
#precmd () {
#$SCREENME true || echo -ne "\ekzsh\e\\"
#}
case `uname` in
Darwin)
PR_HOST_COLOR=$PR_CYAN
;;
*)
PR_HOST_COLOR=$PR_GREEN
;;
esac
PROMPT='$PR_STITLE$PR_LIGHT_BLUE($PR_LIGHT_YELLOW%D{%H:%M}|%!$PR_BLUE%)[%(!.$PR_RED.$PR_GREEN)%n@%m$PR_LIGHT_CYAN %~$PR_BLUE]$PR_NO_COLOUR
PROMPT='$PR_STITLE$PR_LIGHT_BLUE($PR_LIGHT_YELLOW%D{%H:%M}|%!$PR_BLUE%)[%(!.$PR_RED.$PR_HOST_COLOR)%n@%m$PR_LIGHT_CYAN %~$PR_BLUE]$PR_NO_COLOUR
%(!.#.$) '
#source .zshprompt