From 46e2b19f0227f637ecc752b4674be0d9230c6739 Mon Sep 17 00:00:00 2001 From: Thomas Limp Date: Fri, 21 Mar 2014 11:09:31 +0100 Subject: [PATCH] do not initialize RBENV_ROOT so that the loop can do the detection --- plugins/rbenv/rbenv.plugin.zsh | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/rbenv/rbenv.plugin.zsh b/plugins/rbenv/rbenv.plugin.zsh index 57ae2ca1f..b6795b91c 100644 --- a/plugins/rbenv/rbenv.plugin.zsh +++ b/plugins/rbenv/rbenv.plugin.zsh @@ -10,9 +10,6 @@ FOUND_RBENV=0 rbenvdirs=("$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv") if _homebrew-installed && _rbenv-from-homebrew-installed ; then rbenvdirs=($(brew --prefix rbenv) "${rbenvdirs[@]}") - if [[ $RBENV_ROOT = '' ]]; then - RBENV_ROOT="$HOME/.rbenv" - fi fi for rbenvdir in "${rbenvdirs[@]}" ; do