colorize: fix check for pygmentize (#7250)

master
Marc Cornellà 8 years ago committed by GitHub
parent 7b29684a30
commit 999d3ddf4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      plugins/colorize/colorize.plugin.zsh

@ -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…
Cancel
Save