forked from extern/ohmyzsh
colorize: fix check for pygmentize (#7250)
This commit is contained in:
parent
7b29684a30
commit
999d3ddf4c
@ -7,9 +7,9 @@
|
|||||||
alias ccat='colorize_via_pygmentize'
|
alias ccat='colorize_via_pygmentize'
|
||||||
|
|
||||||
colorize_via_pygmentize() {
|
colorize_via_pygmentize() {
|
||||||
if [ ! -x "$(which pygmentize)" ]; then
|
if ! (( $+commands[pygmentize] )); then
|
||||||
echo "package \'Pygments\' is not installed!"
|
echo "package 'Pygments' is not installed!"
|
||||||
return -1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user