Commit 3c41da31 authored by Christophe Bliard's avatar Christophe Bliard Committed by ncanceill
Browse files

Update colorize.plugin.zsh

correctly detect when pygmentize is not installed
do not exit shell if when pygmentize is not installed
parent 3fac1271
......@@ -6,9 +6,9 @@
alias colorize='colorize_via_pygmentize'
colorize_via_pygmentize() {
if [ ! -x $(which pygmentize) ]; then
echo package \'pygmentize\' is not installed!
exit -1
if [ ! -x "$(which pygmentize)" ]; then
echo "package \'pygmentize\' is not installed!"
return -1
fi
if [ $# -eq 0 ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment