mirror of
https://github.com/rbenv/rbenv.git
synced 2024-12-28 20:55:38 +01:00
Simplify _rbenv_versions
This commit is contained in:
parent
e4a040f1e0
commit
ccf7c29fc4
1 changed files with 2 additions and 4 deletions
|
@ -6,10 +6,8 @@ _rbenv_commands() {
|
|||
|
||||
_rbenv_versions() {
|
||||
COMPREPLY=()
|
||||
local cur=${COMP_WORDS[COMP_CWORD]}
|
||||
local versions=(system $(rbenv versions --bare))
|
||||
versions="${versions[@]}"
|
||||
|
||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
local versions="$(echo system; rbenv versions --bare)"
|
||||
COMPREPLY=( $( compgen -W "$versions" -- $cur ) )
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue