From 93827ed84dc1928b31c0678555c6d0fff125ccaa Mon Sep 17 00:00:00 2001 From: James Kyle Date: Thu, 25 Jul 2013 11:39:21 -0700 Subject: [PATCH] Issue #92 Eliminates system bell errors on osx. Prepended an 'if' to remove error bell on osx systems. --- highlighters/root/root-highlighter.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/highlighters/root/root-highlighter.zsh b/highlighters/root/root-highlighter.zsh index 4ef8762..294fda1 100644 --- a/highlighters/root/root-highlighter.zsh +++ b/highlighters/root/root-highlighter.zsh @@ -41,5 +41,5 @@ _zsh_highlight_root_highlighter_predicate() # root highlighting function. _zsh_highlight_root_highlighter() { - [[ $(command id -u) -eq 0 ]] && region_highlight+=("0 $#BUFFER $ZSH_HIGHLIGHT_STYLES[root]") + if [[ $(command id -u) -eq 0 ]] { region_highlight+=("0 $#BUFFER $ZSH_HIGHLIGHT_STYLES[root]") } }