Commit b776f1d2 authored by Aaron N. Brock's avatar Aaron N. Brock
Browse files

Fix issue recognizing if tools are insalled

parent 34b5ff58
...@@ -19,7 +19,7 @@ colorize_via_pygmentize() { ...@@ -19,7 +19,7 @@ colorize_via_pygmentize() {
if [[ ${available_tools[(Ie)$ZSH_COLORIZE_TOOL]} -eq 0 ]]; then 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'." echo "ZSH_COLORIZE_TOOL '$ZSH_COLORIZE_TOOL' not recognized. Available options are 'pygmentize' and 'chroma'."
return 1 return 1
elif (( $+commands[$ZSH_COLORIZE_TOOL] )); then elif (( $+commands["$ZSH_COLORIZE_TOOL"] )); then
echo "Package '$ZSH_COLORIZE_TOOL' is not installed!" echo "Package '$ZSH_COLORIZE_TOOL' is not installed!"
return 1 return 1
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment