zsh: manage remote servers
This commit is contained in:
parent
638d82f49c
commit
ce75c2fabd
@ -64,7 +64,11 @@ eval "$(sheldon source)"
|
|||||||
#eval "$(starship init zsh)"
|
#eval "$(starship init zsh)"
|
||||||
|
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
|
{{- if eq .chezmoi.hostname "taupo" }}
|
||||||
PROMPT='$(prmt --shell zsh --code $? "{path:cyan.bold} {git:purple.bold} {python:yellow.bold::🐍}{rust:red.bold:s:🦀}{node:green.bold:s:⬢}\nat {time:yellow.bold:24hs} {ok:green.bold}{fail:red.bold:code} ")'
|
PROMPT='$(prmt --shell zsh --code $? "{path:cyan.bold} {git:purple.bold} {python:yellow.bold::🐍}{rust:red.bold:s:🦀}{node:green.bold:s:⬢}\nat {time:yellow.bold:24hs} {ok:green.bold}{fail:red.bold:code} ")'
|
||||||
|
{{- else }}
|
||||||
|
PROMPT='$(prmt --shell zsh --code $? "{env:yellow.bold:USER} in {env:green.bold:HOSTNAME} in {path:cyan.bold} {git:purple.bold} {python:yellow.bold::🐍}{rust:red.bold:s:🦀}{node:green.bold:s:⬢}\nat {time:yellow.bold:24hs} {ok:green.bold}{fail:red.bold:code} ")'
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
# Profiling
|
# Profiling
|
||||||
#unsetopt XTRACE
|
#unsetopt XTRACE
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user