From: micah anderson Date: Wed, 5 Oct 2011 13:17:15 +0000 (-0400) Subject: zshrc: hl() parameter fix X-Git-Tag: v0.4.02~19 X-Git-Url: https://git.grml.org/?a=commitdiff_plain;h=b7cea1ced5fbda4087065c55e7fb65e128a02ea1;p=grml-etc-core.git zshrc: hl() parameter fix Simple fix for hl() to adjust for the new highlight argument requirements. --- diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index f5088f6..5225f81 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 -O xterm256 --syntax ${lang} --style ${theme} ${2} | less -SMr else - highlight --ansi --syntax ${lang} ${2} | less -SMr + highlight -O ansi --syntax ${lang} ${2} | less -SMr fi ;; esac