From d77bc5fa46d3f47e006439f1ec5085781d4fcde4 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 7 Jan 2020 10:55:43 +0100 Subject: [PATCH] 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. --- internal/p10k.zsh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}>&-