Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update colorize.plugin.zsh

correctly detect when pygmentize is not installed
do not exit shell if when pygmentize is not installed
  • Loading branch information...
commit 3c41da3172325d90397baed7b27b4c675def8a51 1 parent 3fac127
@cbliard cbliard authored ncanceill committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 plugins/colorize/colorize.plugin.zsh
View
6 plugins/colorize/colorize.plugin.zsh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.