zsh: fix hostname detection

This commit is contained in:
Julien Rabier 2025-12-27 22:50:15 +01:00
parent be8c07f0d6
commit 1af09d4229

View File

@ -67,7 +67,7 @@ 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} ")'
PROMPT='$(prmt --shell zsh --code $? "{env:yellow.bold:USER} in {env:green.bold:HOST} 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