mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 15:30:40 +01:00
fix(colorize): check if $ZSH_COLORIZE_TOOL exists (#11325)
This commit is contained in:
@@ -23,7 +23,7 @@ colorize_check_requirements() {
|
|||||||
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'." >&2
|
echo "ZSH_COLORIZE_TOOL '$ZSH_COLORIZE_TOOL' not recognized. Available options are 'pygmentize' and 'chroma'." >&2
|
||||||
return 1
|
return 1
|
||||||
elif (( $+commands["$ZSH_COLORIZE_TOOL"] )); then
|
elif ! (( $+commands[$ZSH_COLORIZE_TOOL] )); then
|
||||||
echo "Package '$ZSH_COLORIZE_TOOL' is not installed!" >&2
|
echo "Package '$ZSH_COLORIZE_TOOL' is not installed!" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user