From 8c3cab61c7c5f26d8c731f0e6544d1b9860df940 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Fri, 13 Nov 2015 15:06:29 -0500 Subject: [PATCH] add completion block for rbenv-help --- libexec/rbenv-help | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libexec/rbenv-help b/libexec/rbenv-help index 9a3049aa..13bdcf1b 100755 --- a/libexec/rbenv-help +++ b/libexec/rbenv-help @@ -15,6 +15,13 @@ set -e [ -n "$RBENV_DEBUG" ] && set -x +# Provide rbenv completions +if [ "$1" = "--complete" ]; then + echo --usage + rbenv-commands + exit +fi + command_path() { local command="$1" command -v rbenv-"$command" || command -v rbenv-sh-"$command" || true