aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-01-07 12:55:43 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-01-07 12:55:43 +0300
commitd77bc5fa46d3f47e006439f1ec5085781d4fcde4 (patch)
tree48d8d47816685fd648994274656a53666967167e
parent784fea72b524b8b47e749615f665cb57669d087f (diff)
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.
-rw-r--r--internal/p10k.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index e2e00b03..d6a9a6b4 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3905,7 +3905,7 @@ _p9k_set_instant_prompt() {
RPROMPT=$saved_rprompt
}
-typeset -gri __p9k_instant_prompt_version=13
+typeset -gri __p9k_instant_prompt_version=14
_p9k_dump_instant_prompt() {
local user=${(%):-%n}
@@ -4131,6 +4131,7 @@ _p9k_dump_instant_prompt() {
precmd_functions=(${(@)precmd_functions:#_p9k_instant_prompt_precmd_first})
}
precmd_functions=(_p9k_instant_prompt_precmd_first $precmd_functions)
+ DISABLE_UPDATE_PROMPT=true
} && unsetopt prompt_cr prompt_sp || true'
} always {
exec {fd}>&-