From 8ace14beb068b662088f38ccba33b78f8e79bffd Mon Sep 17 00:00:00 2001 From: romkatv Date: Mon, 2 Sep 2019 13:19:38 +0200 Subject: [PATCH] don't set prompt_sp Some users prefer to hide the last line of command output if it doesn't end in \n. Powerlevel10k should respect their choice. See #197. --- internal/p10k.zsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index e39abccb..7ff2e7ee 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3262,8 +3262,9 @@ _p9k_precmd() { fi unsetopt localoptions - prompt_opts=(cr percent sp subst) - setopt nopromptbang prompt{cr,percent,sp,subst} + prompt_opts=(cr percent subst) + [[ ! -o prompt_sp ]] || prompt_opts+=sp + setopt nopromptbang prompt{cr,percent,subst} _p9k_timer_end=EPOCHREALTIME if (( _p9k_timer_start )); then