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=''