Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
b776f1d2
Commit
b776f1d2
authored
Nov 17, 2019
by
Aaron N. Brock
Browse files
Fix issue recognizing if tools are insalled
parent
34b5ff58
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/colorize/colorize.plugin.zsh
View file @
b776f1d2
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment