Merge pull request #91 from xaocon/master

Added sudo as a precommand
This commit is contained in:
Julien Nicoulaud 2012-08-26 03:33:34 -07:00
commit 45194671af

View File

@ -73,7 +73,7 @@ _zsh_highlight_main_highlighter()
'|' '||' ';' '&' '&&' '|' '||' ';' '&' '&&'
) )
ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=( ZSH_HIGHLIGHT_TOKENS_PRECOMMANDS=(
'builtin' 'command' 'exec' 'nocorrect' 'noglob' 'builtin' 'command' 'exec' 'nocorrect' 'noglob' 'sudo'
) )
# Tokens that are always immediately followed by a command. # Tokens that are always immediately followed by a command.
ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS=( ZSH_HIGHLIGHT_TOKENS_FOLLOWED_BY_COMMANDS=(