zshrc: hl() parameter fix
authormicah anderson <micah@riseup.net>
Wed, 5 Oct 2011 13:17:15 +0000 (09:17 -0400)
committerFrank Terbeck <ft@grml.org>
Wed, 5 Oct 2011 13:42:48 +0000 (15:42 +0200)
Simple fix for hl() to adjust for the new highlight argument
requirements.

etc/zsh/zshrc

index f5088f6..5225f81 100644 (file)
@@ -3638,9 +3638,9 @@ if check_com -c highlight ; then
                 lang=${1%:*}
                 [[ ${1} == *:* ]] && [[ -n ${1#*:} ]] && theme=${1#*:}
                 if [[ -n ${theme} ]] ; then
-                    highlight --xterm256 --syntax ${lang} --style ${theme} ${2} | less -SMr
+                    highlight -xterm256 --syntax ${lang} --style ${theme} ${2} | less -SMr
                 else
-                    highlight --ansi --syntax ${lang} ${2} | less -SMr
+                    highlight -ansi --syntax ${lang} ${2} | less -SMr
                 fi
                 ;;
         esac