From b6deca920f6605650d03b35aaf1b5d340ea513f9 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 6 Nov 2016 03:18:19 +0100 Subject: zsh/theme: Add %{%} per line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- zsh/themes/prompt_kyrias_setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/themes/prompt_kyrias_setup b/zsh/themes/prompt_kyrias_setup index c53d762..a697b24 100644 --- a/zsh/themes/prompt_kyrias_setup +++ b/zsh/themes/prompt_kyrias_setup @@ -14,7 +14,7 @@ prompt_user_color() { venv_prompt() { if [[ -n "$VIRTUAL_ENV" ]]; then - print -P '%{$bg[blue]$fg[white] ${VIRTUAL_ENV##*/} %f%k%}' + print -Pn '%{$bg[blue]$fg[white] ${VIRTUAL_ENV##*/} %f%k%}' fi } @@ -35,8 +35,8 @@ prompt_kyrias_setup() { add-zsh-hook precmd prompt_kyrias_precmd add-zsh-hook preexec prompt_kyrias_preexec - PROMPT='%{$bg[$(prompt_user_color)]$fg[white] %m %k%f$bg[white]$fg[$(prompt_user_color)] %~ %f%k$(venv_prompt) -$bg[blue]%} λ %k %}' + PROMPT='%{$bg[$(prompt_user_color)]$fg[white] %m %k%f$bg[white]$fg[$(prompt_user_color)] %~ %f%k$(venv_prompt)%} +%{$bg[blue]%} λ %k %}' } prompt_kyrias_preview() { -- cgit v1.2.3-70-g09d2