diff --git a/libexec/rbenv-completions b/libexec/rbenv-completions index 4cb020cf..19551c2e 100755 --- a/libexec/rbenv-completions +++ b/libexec/rbenv-completions @@ -10,6 +10,11 @@ if [ -z "$COMMAND" ]; then exit 1 fi +# Provide rbenv completions +if [ "$COMMAND" = "--complete" ]; then + exec rbenv-commands +fi + COMMAND_PATH="$(command -v "rbenv-$COMMAND" || command -v "rbenv-sh-$COMMAND")" # --help is provided automatically