Defer to rbenv commands
This commit is contained in:
parent
3b13dc9c14
commit
e4a040f1e0
@ -1,11 +1,7 @@
|
|||||||
_rbenv_commands() {
|
_rbenv_commands() {
|
||||||
local cur commands
|
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
commands="exec prefix rehash set-default set-local version versions\
|
COMPREPLY=( $( compgen -W "$(rbenv commands)" -- $cur ) )
|
||||||
whence which"
|
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W "$commands" -- $cur ) )
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_rbenv_versions() {
|
_rbenv_versions() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user