summaryrefslogtreecommitdiff
path: root/plugins/colorize
diff options
context:
space:
mode:
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
+}