mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 08:00:06 +00:00
Merge pull request #594 from belak/fix-prompt-sp
Add back the `prompt_sp` option for zsh >= 5.4.1
This commit is contained in:
commit
f8ba6937b9
1 changed files with 2 additions and 2 deletions
|
@ -1341,11 +1341,11 @@ prompt_powerlevel9k_setup() {
|
||||||
# returns. We need prompt_subst so we can safely run commands in the prompt
|
# returns. We need prompt_subst so we can safely run commands in the prompt
|
||||||
# without them being double expanded and we need prompt_percent to expand the
|
# without them being double expanded and we need prompt_percent to expand the
|
||||||
# common percent escape sequences.
|
# common percent escape sequences.
|
||||||
prompt_opts=(subst percent cr)
|
prompt_opts=(cr percent sp subst)
|
||||||
|
|
||||||
# Borrowed from promptinit, sets the prompt options in case the theme was
|
# Borrowed from promptinit, sets the prompt options in case the theme was
|
||||||
# not initialized via promptinit.
|
# not initialized via promptinit.
|
||||||
setopt noprompt{bang,cr,percent,subst} "prompt${^prompt_opts[@]}"
|
setopt noprompt{bang,cr,percent,sp,subst} "prompt${^prompt_opts[@]}"
|
||||||
|
|
||||||
# Display a warning if the terminal does not support 256 colors
|
# Display a warning if the terminal does not support 256 colors
|
||||||
local term_colors
|
local term_colors
|
||||||
|
|
Loading…
Reference in a new issue