From 40df756e2db3a67535cfd9311b65d107effab928 Mon Sep 17 00:00:00 2001 From: romkatv Date: Wed, 31 Jul 2019 10:00:27 +0200 Subject: [PATCH] run configuration wizard if POWERLEVEL9K_MODE is the only set parameter --- internal/p10k.zsh | 2 +- internal/wizard.zsh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 9ff3168..b37fa2d 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3281,7 +3281,7 @@ _p9k_precmd() { if _p9k_must_init; then if (( !__p9k_configured )); then __p9k_configured=1 - if [[ -z ${parameters[(i)POWERLEVEL9K_*]} ]] && _p9k_can_configure -q; then + if [[ "${parameters[(I)POWERLEVEL9K_*]}" == (POWERLEVEL9K_MODE|) ]] && _p9k_can_configure -q; then if $__p9k_root_dir/internal/wizard.zsh -d $__p9k_root_dir; then source $__p9k_cfg_path _p9k_must_init diff --git a/internal/wizard.zsh b/internal/wizard.zsh index 4e6356e..d0685ed 100755 --- a/internal/wizard.zsh +++ b/internal/wizard.zsh @@ -146,7 +146,7 @@ function quit() { print -P "To define an option that does nothing except for disabling Powerlevel10k" print -P "configuration wizard, type the following command:" print -P "" - print -P " %2Fecho%f %3F'POWERLEVEL9K_MODE='%f >>! $__p9k_zshrc_u" + print -P " %2Fecho%f %3F'POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true'%f >>! $__p9k_zshrc_u" print -P "" print -P "To run Powerlevel10k configuration wizard right now, type:" print -P ""