From 03d664e0481b51b77ceadfb7d4fb64e131aef32e Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 13 Sep 2011 12:59:59 -0500 Subject: [PATCH] Completion for whence --- libexec/rbenv-whence | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libexec/rbenv-whence b/libexec/rbenv-whence index f90b6c4e..8a926877 100755 --- a/libexec/rbenv-whence +++ b/libexec/rbenv-whence @@ -2,6 +2,12 @@ set -e [ -n "$RBENV_DEBUG" ] && set -x +# Provide rbenv completions +if [ "$1" = "--complete" ]; then + echo --path + exec rbenv shims --short +fi + if [ "$1" = "--path" ]; then print_paths="1" shift