Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
|
_pyenv() {
|
|
|
COMPREPLY=()
|
|
|
local word="${COMP_WORDS[COMP_CWORD]}"
|
|
|
|
|
|
if [ "$COMP_CWORD" -eq 1 ]; then
|
|
|
COMPREPLY=( $(compgen -W "$(pyenv commands)" -- "$word") )
|
|
|
else
|
|
|
local command="${COMP_WORDS[1]}"
|
|
|
local completions="$(pyenv completions "$command")"
|
|
|
COMPREPLY=( $(compgen -W "$completions" -- "$word") )
|
|
|
fi
|
|
|
}
|
|
|
|
|
|
complete -F _pyenv pyenv
|