summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/p10k-classic.zsh2
-rw-r--r--config/p10k-lean.zsh2
-rw-r--r--config/p10k-pure.zsh2
3 files changed, 3 insertions, 3 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index 35cfac1e..8c1e36f1 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -761,5 +761,5 @@
typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
}
-setopt ${p10k_config_opts[@]}
+(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
'builtin' 'unset' 'p10k_config_opts'
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 96aba8e3..4693b363 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -740,5 +740,5 @@
typeset -g POWERLEVEL9K_EXAMPLE_VISUAL_IDENTIFIER_EXPANSION='${P9K_VISUAL_IDENTIFIER}'
}
-setopt ${p10k_config_opts[@]}
+(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
'builtin' 'unset' 'p10k_config_opts'
diff --git a/config/p10k-pure.zsh b/config/p10k-pure.zsh
index 61a2f5a1..a7ce1f5b 100644
--- a/config/p10k-pure.zsh
+++ b/config/p10k-pure.zsh
@@ -100,5 +100,5 @@
typeset -g POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=yellow
}
-setopt ${p10k_config_opts[@]}
+(( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]}
'builtin' 'unset' 'p10k_config_opts'