Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
23de5d95
Unverified
Commit
23de5d95
authored
Nov 09, 2022
by
cxy004
Committed by
GitHub
Nov 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(colorize): check if $ZSH_COLORIZE_TOOL exists (#11325)
parent
9f77cb29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colorize.plugin.zsh
plugins/colorize/colorize.plugin.zsh
+1
-1
No files found.
plugins/colorize/colorize.plugin.zsh
View file @
23de5d95
...
...
@@ -23,7 +23,7 @@ colorize_check_requirements() {
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'."
>
&2
return
1
elif
((
$+
commands[
"
$ZSH_COLORIZE_TOOL
"
]
))
;
then
elif
!
((
$+
commands[
$ZSH_COLORIZE_TOOL
]
))
;
then
echo
"Package '
$ZSH_COLORIZE_TOOL
' is not installed!"
>
&2
return
1
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