feat(zsh): ys-style gruvbox prompt on servers instead of p10k

Thomas prefers the two-line ys layout root already had. user@host in
gruvbox red (a red block for root) marks the machine. Shared file so
root's shell can use a root-owned copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
thomas.koppandClaude Opus 5.5 committed 2026-10-19 00:59:24 +02:00
1 parent 7edb68aaba
commit 4ca0a7ce8b
4 files changed
+39 -61

No files matched your search

+5 -1
View File
@@ -10,7 +10,11 @@
# 30-path.zsh, so a colour set here is overwritten before the first prompt is
# drawn. It belongs in the role files, which run after that.
if [[ -d "${ZSH_CUSTOM:-$ZSH/custom}/themes/powerlevel10k" ]]; then
if [[ "$ROLE" == server ]]; then
# The server draws its own ys-style prompt in 50-server.zsh. A theme loaded
# here would overwrite it before every prompt (p10k does so from precmd).
ZSH_THEME=""
elif [[ -d "${ZSH_CUSTOM:-$ZSH/custom}/themes/powerlevel10k" ]]; then
ZSH_THEME="powerlevel10k/powerlevel10k"
else
# ys is what both machines without powerlevel10k already ran. Without this