From cac51b278d995e041b023556cdc5c63208af8b6c Mon Sep 17 00:00:00 2001 From: Andrey Koleshko Date: Fri, 9 Dec 2016 19:10:50 +0300 Subject: [PATCH] The $HOME/.rbenv folder should have a bigger priority This folder should get the biggest priority because it should be default accordingly to rbenv documentation. --- plugins/rbenv/rbenv.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/rbenv/rbenv.plugin.zsh b/plugins/rbenv/rbenv.plugin.zsh index ef5106f2d..4973a6fd5 100644 --- a/plugins/rbenv/rbenv.plugin.zsh +++ b/plugins/rbenv/rbenv.plugin.zsh @@ -7,6 +7,9 @@ rbenvdirs=("$HOME/.rbenv" "/usr/local/rbenv" "/opt/rbenv" "/usr/local/opt/rbenv" if _homebrew-installed && rbenv_homebrew_path=$(brew --prefix rbenv 2>/dev/null); then rbenvdirs=($rbenv_homebrew_path "${rbenvdirs[@]}") unset rbenv_homebrew_path + if [[ $RBENV_ROOT = '' ]]; then + RBENV_ROOT="$HOME/.rbenv" + fi fi for rbenvdir in "${rbenvdirs[@]}" ; do