From cc680ea0402b0c72b534788955424291f4a50c85 Mon Sep 17 00:00:00 2001 From: Jason Karns Date: Thu, 12 Nov 2015 21:03:51 -0500 Subject: [PATCH] add shell completions --- bin/rbenv-update | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bin/rbenv-update b/bin/rbenv-update index 898916b..19fca67 100755 --- a/bin/rbenv-update +++ b/bin/rbenv-update @@ -4,6 +4,13 @@ set -e [ -n "$RBENV_DEBUG" ] && set -x +# Provide rbenv completions +if [ --complete = "$1" ]; then + shift + echo --noop + exit 0 +fi + # Parse command line flags noop="" verbose=""