Quieten non-zero commands reported by err trap.

This commit is contained in:
Paul Ackersviller 2016-10-09 23:47:17 -04:00
commit b267c7b4e7
2 changed files with 7 additions and 4 deletions

View file

@ -65,8 +65,11 @@ _zsh_highlight()
return $ret
fi
setopt localoptions warncreateglobal
setopt localoptions noksharrays
# Did a couple of tweaks to highlighters/main/main-highlighter.zsh
# to prevent need for following, thut there'll surely be others.
# setopt localtraps
# unfunction TRAPZERR
setopt localoptions noksharrays warncreateglobal
local REPLY # don't leak $REPLY into global scope
# Do not highlight if there are more than 300 chars in the buffer. It's most