Merge pull request #215 from blueyed/fix-zsh-completion

Fix zsh completion with multiple words
This commit is contained in:
Yamashita, Yuu 2014-08-11 10:56:26 +09:00
commit f9053406c2

View file

@ -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}")