mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-26 05:50:07 +00:00
set DISABLE_UPDATE_PROMPT=true when activating instant prompt
This is an Oh My Zsh option that makes it update without asking for confirmation. In practice, when instant prompt is active, OMZ doesn't wait for the user confirmation and automatically updates. By setting DISABLE_UPDATE_PROMPT=true we get rid of the spurious question from the console output without changing the behavior of OMZ updater.
This commit is contained in:
parent
784fea72b5
commit
d77bc5fa46
1 changed files with 2 additions and 1 deletions
|
@ -3905,7 +3905,7 @@ _p9k_set_instant_prompt() {
|
||||||
RPROMPT=$saved_rprompt
|
RPROMPT=$saved_rprompt
|
||||||
}
|
}
|
||||||
|
|
||||||
typeset -gri __p9k_instant_prompt_version=13
|
typeset -gri __p9k_instant_prompt_version=14
|
||||||
|
|
||||||
_p9k_dump_instant_prompt() {
|
_p9k_dump_instant_prompt() {
|
||||||
local user=${(%):-%n}
|
local user=${(%):-%n}
|
||||||
|
@ -4131,6 +4131,7 @@ _p9k_dump_instant_prompt() {
|
||||||
precmd_functions=(${(@)precmd_functions:#_p9k_instant_prompt_precmd_first})
|
precmd_functions=(${(@)precmd_functions:#_p9k_instant_prompt_precmd_first})
|
||||||
}
|
}
|
||||||
precmd_functions=(_p9k_instant_prompt_precmd_first $precmd_functions)
|
precmd_functions=(_p9k_instant_prompt_precmd_first $precmd_functions)
|
||||||
|
DISABLE_UPDATE_PROMPT=true
|
||||||
} && unsetopt prompt_cr prompt_sp || true'
|
} && unsetopt prompt_cr prompt_sp || true'
|
||||||
} always {
|
} always {
|
||||||
exec {fd}>&-
|
exec {fd}>&-
|
||||||
|
|
Loading…
Reference in a new issue