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

View file

@ -1,8 +1,8 @@
{
"dependencies": {
"coc-json": ">=1.3.2",
"coc-python": ">=1.2.12",
"coc-snippets": ">=2.2.1",
"coc-python": ">=1.2.13",
"coc-snippets": ">=2.2.3",
"coc-ultisnips": ">=1.2.3"
}
}

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