summaryrefslogtreecommitdiff
path: root/internal/wizard.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-08-20 15:59:07 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2020-08-20 15:59:07 +0300
commit525e2545db9470bad88b6365b97df80fcfa9aff4 (patch)
treee0eede1c618669c719628883c8755195e7d42b20 /internal/wizard.zsh
parentc425a5e635d66523cc679ebf45f42fa1b20e975e (diff)
wizard: when using z4h, automatically enable instant prompt in quiet mode
Diffstat (limited to 'internal/wizard.zsh')
-rw-r--r--internal/wizard.zsh6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/wizard.zsh b/internal/wizard.zsh
index c668afde..4ef373a7 100644
--- a/internal/wizard.zsh
+++ b/internal/wizard.zsh
@@ -1424,8 +1424,14 @@ function print_instant_prompt_link() {
function ask_instant_prompt() {
if ! is-at-least 5.4; then
instant_prompt=off
+ options+=instant_prompt=auto-off
return 0
fi
+ if (( $+functions[z4h] )); then
+ instant_prompt=quiet
+ options+=instant_prompt=auto-quiet
+ return
+ fi
add_widget 0 flowing -c "%BInstant Prompt Mode%b"
add_widget 0 print_instant_prompt_link
add_widget 1