driver: use 'emulate -L zsh' like highlighters do.

This commit is contained in:
Daniel Shahaf 2017-01-25 19:43:59 +00:00
parent c53b078c89
commit c487ad4649

View File

@ -36,6 +36,7 @@ local zsh_highlight__aliases="`builtin alias -Lm '[^+]*'`"
# Hence, we exclude them from unaliasing: # Hence, we exclude them from unaliasing:
builtin unalias -m '[^+]*' builtin unalias -m '[^+]*'
emulate -L zsh
setopt localoptions warncreateglobal setopt localoptions warncreateglobal
# Set $0 to the expected value, regardless of functionargzero. # Set $0 to the expected value, regardless of functionargzero.