From f47e74aa44d9768a9dbb71e916e94fa553bab5ba Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 13 Sep 2011 13:16:03 -0500 Subject: [PATCH] Autocompletion --- bin/rbenv-install | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/rbenv-install b/bin/rbenv-install index 3dca6489..dd384617 100755 --- a/bin/rbenv-install +++ b/bin/rbenv-install @@ -2,6 +2,11 @@ set -e [ -n "$RBENV_DEBUG" ] && set -x +# Provide rbenv completions +if [ "$1" = "--complete" ]; then + exec ruby-build --definitions +fi + if [ -z "$RBENV_ROOT" ]; then RBENV_ROOT="${HOME}/.rbenv" fi