mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-14 14:23:53 -05: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:
@@ -8,6 +8,8 @@ _rbenv() {
|
||||
local words completions
|
||||
read -cA words
|
||||
|
||||
emulate -L zsh
|
||||
|
||||
if [ "${#words}" -eq 2 ]; then
|
||||
completions="$(rbenv commands)"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user