fix(zsh): join server prompt lines, ys-style $ prompt char

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:47 +02:00
1 parent 4ca0a7ce8b
commit 187423ee4e
1 file changed
+11 -8
+11 -8
View File
@@ -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=''