summaryrefslogtreecommitdiff
path: root/plugins/colorize
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2014-06-30 21:00:53 -0700
committerRobby Russell <robby@planetargon.com>2014-06-30 21:00:53 -0700
commit4131a59d1a57d53bf711115317116a6c57483636 (patch)
treec3b2a746fdc18708b4c18b33c4475f20bf9d4e61 /plugins/colorize
parent3913106b2e7127d396f27b652df812340ec0c871 (diff)
parent08632bb1780d51f6748b5c09ef5232862313f78f (diff)
downloadzsh-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')
-rw-r--r--plugins/colorize/colorize.plugin.zsh10
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
+}