mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 15:13:27 +00:00
Fix zsh completion with multiple words
`${words[2,-2]}` must not be quoted, otherwise completion for multiple words (e.g. `shell 3.4.1`) fails.
This commit is contained in:
parent
aa62882347
commit
4159055117
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ _pyenv() {
|
|||
if [ "${#words}" -eq 2 ]; then
|
||||
completions="$(pyenv commands)"
|
||||
else
|
||||
completions="$(pyenv completions "${words[2,-2]}")"
|
||||
completions="$(pyenv completions ${words[2,-2]})"
|
||||
fi
|
||||
|
||||
reply=("${(ps:\n:)completions}")
|
||||
|
|
Loading…
Reference in a new issue