Skip to content
Myr

[zsh] Fix 'emulate: unknown argument -o' error on old zsh (#3465)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix #2094

authored by LangLangBart · committed by GitHub · parent de7ef7e · Browse files · 2 files+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:shell/completion.zsh+1 added-1 removed
68 unmodified lines
69# aliases. Note that `aliases` is not the only option that's important to70# control. There are several others that could wreck havoc if they are set71# to values we don't expect. With the following `emulate` command we72# sidestep this issue entirely.73'emulate' 'zsh' '-o' 'no_aliases'73'builtin' 'emulate' 'zsh' && 'builtin' 'setopt' 'no_aliases'7475# This brace is the start of try-always block. The `always` part is like76# `finally` in lesser languages. We use it to *always* restore user options.77{
270 unmodified lines
modified:shell/key-bindings.zsh+1 added-1 removed