From 2f917312f18c36c9ee745cd11636071ea85be16d Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Fri, 20 Nov 2015 09:12:10 -0500 Subject: [PATCH] completions for rbenv-completions --- libexec/rbenv-completions | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/rbenv-completions b/libexec/rbenv-completions index 4cb020c..19551c2 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