mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-13 13:53:53 -05:00
Simplify _rbenv_versions
This commit is contained in:
@@ -6,10 +6,8 @@ _rbenv_commands() {
|
|||||||
|
|
||||||
_rbenv_versions() {
|
_rbenv_versions() {
|
||||||
COMPREPLY=()
|
COMPREPLY=()
|
||||||
local cur=${COMP_WORDS[COMP_CWORD]}
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
local versions=(system $(rbenv versions --bare))
|
local versions="$(echo system; rbenv versions --bare)"
|
||||||
versions="${versions[@]}"
|
|
||||||
|
|
||||||
COMPREPLY=( $( compgen -W "$versions" -- $cur ) )
|
COMPREPLY=( $( compgen -W "$versions" -- $cur ) )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user