1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-18 08:13:46 -05:00

import trivial changes from rbenv 0.4.0

This commit is contained in:
Yamashita Yuu
2013-01-18 18:57:08 +09:00
parent 684f7b7f21
commit fca31c4307
12 changed files with 136 additions and 85 deletions

View File

@@ -5,14 +5,13 @@ fi
compctl -K _pyenv pyenv
_pyenv() {
local word words completions
local words completions
read -cA words
word="${words[2]}"
if [ "${#words}" -eq 2 ]; then
completions="$(pyenv commands)"
else
completions="$(pyenv completions "${word}")"
completions="$(pyenv completions "${words[2,-1]}")"
fi
reply=("${(ps:\n:)completions}")