mirror of
https://github.com/pyenv/pyenv.git
synced 2025-02-27 07:44:44 +00:00
Merge pull request #215 from blueyed/fix-zsh-completion
Fix zsh completion with multiple words
This commit is contained in:
commit
f9053406c2
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ _pyenv() {
|
||||||
if [ "${#words}" -eq 2 ]; then
|
if [ "${#words}" -eq 2 ]; then
|
||||||
completions="$(pyenv commands)"
|
completions="$(pyenv commands)"
|
||||||
else
|
else
|
||||||
completions="$(pyenv completions "${words[2,-2]}")"
|
completions="$(pyenv completions ${words[2,-2]})"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
reply=("${(ps:\n:)completions}")
|
reply=("${(ps:\n:)completions}")
|
||||||
|
|
Loading…
Reference in a new issue