summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-09-02 14:19:38 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-09-02 14:19:38 +0300
commit8ace14beb068b662088f38ccba33b78f8e79bffd (patch)
treee913799f0284ab2906216573d254566bc582027b /internal
parent61f5552c98aca6b0f41172a16391a842e1593594 (diff)
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.
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/p10k.zsh5
1 files 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