From 465a1472bae33fa474660459cd446e73197054f7 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Tue, 13 Sep 2011 13:02:55 -0500 Subject: [PATCH] Completion for which --- libexec/rbenv-which | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libexec/rbenv-which b/libexec/rbenv-which index cf5864a6..4ba82678 100755 --- a/libexec/rbenv-which +++ b/libexec/rbenv-which @@ -2,6 +2,11 @@ set -e [ -n "$RBENV_DEBUG" ] && set -x +# Provide rbenv completions +if [ "$1" = "--complete" ]; then + exec rbenv shims --short +fi + expand_path() { if [ ! -d "$1" ]; then return 1