diff options
author | Robby Russell <robby@planetargon.com> | 2014-06-30 21:00:53 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2014-06-30 21:00:53 -0700 |
commit | 4131a59d1a57d53bf711115317116a6c57483636 (patch) | |
tree | c3b2a746fdc18708b4c18b33c4475f20bf9d4e61 /plugins/colorize/colorize.plugin.zsh | |
parent | 3913106b2e7127d396f27b652df812340ec0c871 (diff) | |
parent | 08632bb1780d51f6748b5c09ef5232862313f78f (diff) | |
download | zsh-4131a59d1a57d53bf711115317116a6c57483636.tar.gz zsh-4131a59d1a57d53bf711115317116a6c57483636.tar.bz2 zsh-4131a59d1a57d53bf711115317116a6c57483636.zip |
Merge pull request #2827 from ncanceill/easymerge
...you folks are amazing. :-)
"Easy-to-merge"
Diffstat (limited to 'plugins/colorize/colorize.plugin.zsh')
-rw-r--r-- | plugins/colorize/colorize.plugin.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/colorize/colorize.plugin.zsh b/plugins/colorize/colorize.plugin.zsh index 0696607d9..11b58e69d 100644 --- a/plugins/colorize/colorize.plugin.zsh +++ b/plugins/colorize/colorize.plugin.zsh @@ -1,4 +1,4 @@ -# Plugin for highligthing file content +# Plugin for highlighting file content # Plugin highlights file content based on the filename extension. # If no highlighting method supported for given extension then it tries # guess it by looking for file content. @@ -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 @@ -25,4 +25,4 @@ colorize_via_pygmentize() { pygmentize -g "$FNAME" fi done -}
\ No newline at end of file +} |