diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-02 14:52:17 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-02 14:52:17 +0300 |
commit | 1547336bb6012189632f43ccb6730b02e7425ad0 (patch) | |
tree | 9befe8889711dd74fb7e4dbea62439db099c8759 /internal/p10k.zsh | |
parent | 8ace14beb068b662088f38ccba33b78f8e79bffd (diff) |
don't set prompt_cr
Some users prefer to have broken prompt if the last line of command
output doesn't end in \n. Powerlevel10k should respect their choice.
See #197.
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 7ff2e7ee..aaea53ec 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3262,9 +3262,10 @@ _p9k_precmd() { fi unsetopt localoptions - prompt_opts=(cr percent subst) + prompt_opts=(percent subst) [[ ! -o prompt_sp ]] || prompt_opts+=sp - setopt nopromptbang prompt{cr,percent,subst} + [[ ! -o prompt_cr ]] || prompt_opts+=cr + setopt nopromptbang prompt{percent,subst} _p9k_timer_end=EPOCHREALTIME if (( _p9k_timer_start )); then |