From b6ebc2f08bd36a8eeaac93719b6b1b3bae7d0f00 Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Wed, 3 Aug 2011 11:17:28 -0600 Subject: [PATCH] look for plugins to extend rehash and which --- libexec/rbenv-rehash | 28 +++++++++++++++++++++------- libexec/rbenv-which | 8 ++++++++ 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/libexec/rbenv-rehash b/libexec/rbenv-rehash index c0096616..96305478 100755 --- a/libexec/rbenv-rehash +++ b/libexec/rbenv-rehash @@ -1,14 +1,28 @@ #!/usr/bin/env bash -e -mkdir -p "${HOME}/.rbenv/shims" -cd "${HOME}/.rbenv/shims" -rm -f * +make_shims() { + local glob="$@" -for file in ../versions/*/bin/*; do - shim="${file##*/}" - cat > "$shim" < "$shim" <