1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-25 00:21:58 +00:00

wizard: when using z4h, automatically enable instant prompt in quiet mode

This commit is contained in:
Roman Perepelitsa 2020-08-20 14:59:07 +02:00
parent c425a5e635
commit 525e2545db

View file

@ -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