mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-28 20:55:38 +01:00
Make zsh tab completion more resilient against user's shell configuration (#1422)
Ensure a zsh user's prior shell options don't interfere with indexing into an array of arguments
This commit is contained in:
parent
c4395e5820
commit
a8ecfc743e
1 changed files with 2 additions and 0 deletions
|
@ -8,6 +8,8 @@ _rbenv() {
|
|||
local words completions
|
||||
read -cA words
|
||||
|
||||
emulate -L zsh
|
||||
|
||||
if [ "${#words}" -eq 2 ]; then
|
||||
completions="$(rbenv commands)"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue