1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 05:43:53 -05:00

Simplify _rbenv_versions

This commit is contained in:
Sam Stephenson
2011-08-03 22:22:45 -05:00
parent e4a040f1e0
commit ccf7c29fc4

View File

@@ -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 ) )
}