mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Complete versions for rbenv set-local
and rbenv prefix
too
This commit is contained in:
parent
ccf7c29fc4
commit
f904d1b92f
1 changed files with 8 additions and 6 deletions
|
@ -12,16 +12,18 @@ _rbenv_versions() {
|
|||
}
|
||||
|
||||
_rbenv() {
|
||||
local cur prev
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
local prev="${COMP_WORDS[COMP_CWORD-1]}"
|
||||
|
||||
if [ "$prev" = "set-default" ]; then
|
||||
case "$prev" in
|
||||
set-* | prefix )
|
||||
_rbenv_versions
|
||||
else
|
||||
;;
|
||||
* )
|
||||
_rbenv_commands
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
complete -F _rbenv rbenv
|
||||
|
|
Loading…
Reference in a new issue