aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-31 11:00:27 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-31 11:00:27 +0300
commit40df756e2db3a67535cfd9311b65d107effab928 (patch)
tree5e0fc51ae366a5fb191624b6a6ac1c3b2f86bc32 /internal/p10k.zsh
parentd6dedc53bc41439351b0a6c5b960855d6cfe6b37 (diff)
run configuration wizard if POWERLEVEL9K_MODE is the only set parameter
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 9ff31681..b37fa2d0 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