Skip to content

Commit

Permalink
[zsh] Fix 'emulate: unknown argument -o' error on old zsh (#3465)
Browse files Browse the repository at this point in the history
Fix #2094
  • Loading branch information
LangLangBart authored Oct 14, 2023
1 parent de7ef7e commit 3e1735b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shell/completion.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ fi
# control. There are several others that could wreck havoc if they are set
# to values we don't expect. With the following `emulate` command we
# sidestep this issue entirely.
'emulate' 'zsh' '-o' 'no_aliases'
'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases'

# This brace is the start of try-always block. The `always` part is like
# `finally` in lesser languages. We use it to *always* restore user options.
Expand Down
2 changes: 1 addition & 1 deletion shell/key-bindings.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ else
}
fi

'emulate' 'zsh' '-o' 'no_aliases'
'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases'

{

Expand Down

0 comments on commit 3e1735b

Please sign in to comment.