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