b776f1d20f0537cefec9b58e41933dfd04334b62

Author
Aaron N. Brock <aaron@functionize.com>
Committer
Aaron N. Brock <aaron@functionize.com>
Date

Message

Fix issue recognizing if tools are insalled

Diff

 1diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh
 2index ac826e44bd05950b415602a365ff0e0853db61c6..2335113d5e0568f1099201266bb801c872859655 100644
 3--- a/plugins/colorize/colorize.plugin.zsh
 4+++ b/plugins/colorize/colorize.plugin.zsh
 5@@ -19,7 +19,7 @@ colorize_via_pygmentize() {
 6     if [[ ${available_tools[(Ie)$ZSH_COLORIZE_TOOL]} -eq 0 ]]; then
 7         echo "ZSH_COLORIZE_TOOL '$ZSH_COLORIZE_TOOL' not recognized. Available options are 'pygmentize' and 'chroma'."
 8         return 1
 9-    elif (( $+commands[$ZSH_COLORIZE_TOOL] )); then
10+    elif (( $+commands["$ZSH_COLORIZE_TOOL"] )); then
11         echo "Package '$ZSH_COLORIZE_TOOL' is not installed!"
12         return 1
13     fi