1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-09-21 02:50:08 +00:00

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.
This commit is contained in:
romkatv 2019-09-02 13:52:17 +02:00
parent 8ace14beb0
commit 1547336bb6

View file

@ -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