summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron N. Brock <aaron@functionize.com>2019-11-17 14:03:14 -0500
committerAaron N. Brock <aaron@functionize.com>2019-11-17 14:03:14 -0500
commitb776f1d20f0537cefec9b58e41933dfd04334b62 (patch)
tree98a5fca17ba19a1b507401266a2fdb1719855152
parent34b5ff588bdd96970d63cc5763b9b391fd3199fc (diff)
downloadzsh-b776f1d20f0537cefec9b58e41933dfd04334b62.tar.gz
zsh-b776f1d20f0537cefec9b58e41933dfd04334b62.tar.bz2
zsh-b776f1d20f0537cefec9b58e41933dfd04334b62.zip
Fix issue recognizing if tools are insalled
-rw-r--r--plugins/colorize/colorize.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh
index ac826e44b..2335113d5 100644
--- a/plugins/colorize/colorize.plugin.zsh
+++ b/plugins/colorize/colorize.plugin.zsh
@@ -19,7 +19,7 @@ colorize_via_pygmentize() {
if [[ ${available_tools[(Ie)$ZSH_COLORIZE_TOOL]} -eq 0 ]]; then
echo "ZSH_COLORIZE_TOOL '$ZSH_COLORIZE_TOOL' not recognized. Available options are 'pygmentize' and 'chroma'."
return 1
- elif (( $+commands[$ZSH_COLORIZE_TOOL] )); then
+ elif (( $+commands["$ZSH_COLORIZE_TOOL"] )); then
echo "Package '$ZSH_COLORIZE_TOOL' is not installed!"
return 1
fi