Merge pull request #2616 from Bounga/master

Don't set RBENV_ROOT to "$HOME/.rbenv" when using Homebrew rbenv
This commit is contained in:
Robby Russell 2014-03-22 13:27:56 -07:00
commit c97aff8f6b

View File

@ -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