From ce75c2fabd2456e4b358edfb308feca4fd7f6986 Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Sat, 27 Dec 2025 21:48:27 +0100 Subject: [PATCH] zsh: manage remote servers --- dot_zshrc.tmpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dot_zshrc.tmpl b/dot_zshrc.tmpl index a98ed57..1812c39 100644 --- a/dot_zshrc.tmpl +++ b/dot_zshrc.tmpl @@ -64,7 +64,11 @@ eval "$(sheldon source)" #eval "$(starship init zsh)" 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} ")' +{{- 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 #unsetopt XTRACE