浏览代码

Fix issue recognizing if tools are insalled

Aaron N. Brock 5 年之前
父节点
当前提交
b776f1d20f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/colorize/colorize.plugin.zsh

+ 1 - 1
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