From e4a040f1e092a29f42099482e20ba5017b7e09e2 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Wed, 3 Aug 2011 22:20:25 -0500 Subject: [PATCH] Defer to `rbenv commands` --- completions/rbenv.bash | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/completions/rbenv.bash b/completions/rbenv.bash index de53fc69..539c05bf 100644 --- a/completions/rbenv.bash +++ b/completions/rbenv.bash @@ -1,11 +1,7 @@ _rbenv_commands() { - local cur commands COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - commands="exec prefix rehash set-default set-local version versions\ - whence which" - - COMPREPLY=( $( compgen -W "$commands" -- $cur ) ) + local cur="${COMP_WORDS[COMP_CWORD]}" + COMPREPLY=( $( compgen -W "$(rbenv commands)" -- $cur ) ) } _rbenv_versions() {