diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-06 03:18:19 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-01 18:37:35 +0200 |
commit | b6deca920f6605650d03b35aaf1b5d340ea513f9 (patch) | |
tree | 2aea215a31d01921f16bd801cac81f12069d7789 | |
parent | 20dbbe4905394ebc72146f7937589b067b924ebc (diff) | |
download | dotfiles-b6deca920f6605650d03b35aaf1b5d340ea513f9.tar.xz |
zsh/theme: Add %{%} per line
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | zsh/themes/prompt_kyrias_setup | 6 |
1 files 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() { |