From 187423ee4e5066588a39a15bb1a3629401b5c77c Mon Sep 17 00:00:00 2001 From: "thomas.kopp" Date: Mon, 19 Oct 2026 00:59:47 +0200 Subject: [PATCH] fix(zsh): join server prompt lines, ys-style $ prompt char Co-Authored-By: Claude Opus 5.5 --- .config/zsh/server-prompt.zsh | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.config/zsh/server-prompt.zsh b/.config/zsh/server-prompt.zsh index 175ed35..ea5156e 100644 --- a/.config/zsh/server-prompt.zsh +++ b/.config/zsh/server-prompt.zsh @@ -20,12 +20,15 @@ ZSH_THEME_GIT_PROMPT_CLEAN=" %F{142}o" setopt PROMPT_SUBST -PROMPT=' -%B%(#,%F{167},%F{109})#%f%b \ -%(#,%K{167}%F{235}%B %n@%m %b%f%k,%B%F{167}%n@%m%f%b) \ -%F{245}in%f \ -%B%F{214}%~%f%b\ -$(git_prompt_info) \ -%F{245}[%*]%f%(?,, C:%F{167}%?%f) -%B%F{167}%#%f%b ' +# Assembled piece by piece: inside single quotes a trailing backslash does not +# join lines, and single quotes are needed so $(git_prompt_info) runs per prompt. +PROMPT=$'\n' +PROMPT+='%B%(#,%F{167},%F{109})#%f%b ' +PROMPT+='%(#,%K{167}%F{235}%B %n@%m %b%f%k,%B%F{167}%n@%m%f%b) ' +PROMPT+='%F{245}in%f ' +PROMPT+='%B%F{214}%~%f%b' +PROMPT+='$(git_prompt_info) ' +PROMPT+='%F{245}[%*]%f%(?,, C:%F{167}%?%f)' +PROMPT+=$'\n' +PROMPT+='%B%F{167}%(#,#,$)%f%b ' RPROMPT=''