1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-10 12:33:48 -05:00

fix completion problem on zsh

This commit is contained in:
Yamashita Yuu
2013-05-01 13:14:22 +09:00
parent 2d55aea467
commit e9db2caace

View File

@@ -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,-1]}")" completions="$(pyenv completions "${words[2,-2]}")"
fi fi
reply=("${(ps:\n:)completions}") reply=("${(ps:\n:)completions}")