From b7cea1ced5fbda4087065c55e7fb65e128a02ea1 Mon Sep 17 00:00:00 2001 From: micah anderson Date: Wed, 5 Oct 2011 09:17:15 -0400 Subject: [PATCH] zshrc: hl() parameter fix Simple fix for hl() to adjust for the new highlight argument requirements. --- etc/zsh/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.1.4