From c487ad4649f9e5ab5c5e463d45f280c588e2cb24 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Wed, 25 Jan 2017 19:43:59 +0000 Subject: [PATCH] driver: use 'emulate -L zsh' like highlighters do. --- zsh-syntax-highlighting.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 31220d7..abdcecf 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -36,6 +36,7 @@ local zsh_highlight__aliases="`builtin alias -Lm '[^+]*'`" # Hence, we exclude them from unaliasing: builtin unalias -m '[^+]*' +emulate -L zsh setopt localoptions warncreateglobal # Set $0 to the expected value, regardless of functionargzero.