add host color
This commit is contained in:
parent
fefb13530f
commit
1f042392b3
2 changed files with 12 additions and 3 deletions
|
|
@ -1,8 +1,8 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"coc-json": ">=1.3.2",
|
"coc-json": ">=1.3.2",
|
||||||
"coc-python": ">=1.2.12",
|
"coc-python": ">=1.2.13",
|
||||||
"coc-snippets": ">=2.2.1",
|
"coc-snippets": ">=2.2.3",
|
||||||
"coc-ultisnips": ">=1.2.3"
|
"coc-ultisnips": ">=1.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
11
.zshrc
11
.zshrc
|
|
@ -73,8 +73,17 @@ PR_NO_COLOUR="%{$terminfo[sgr0]%}"
|
||||||
#precmd () {
|
#precmd () {
|
||||||
#$SCREENME true || echo -ne "\ekzsh\e\\"
|
#$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
|
#source .zshprompt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue