mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-25 15:20:08 +00:00
colorize: fix check for pygmentize (#7250)
This commit is contained in:
parent
7b29684a30
commit
999d3ddf4c
1 changed files with 3 additions and 3 deletions
|
@ -7,9 +7,9 @@
|
|||
alias ccat='colorize_via_pygmentize'
|
||||
|
||||
colorize_via_pygmentize() {
|
||||
if [ ! -x "$(which pygmentize)" ]; then
|
||||
echo "package \'Pygments\' is not installed!"
|
||||
return -1
|
||||
if ! (( $+commands[pygmentize] )); then
|
||||
echo "package 'Pygments' is not installed!"
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
|
|
Loading…
Reference in a new issue