Only set RBENV_ROOT with brew in OSX

This commit is contained in:
Ivan Malison 2016-09-03 17:39:06 -07:00
parent 1b4727c0b7
commit 9e2ad4173f
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -80,8 +80,11 @@ function _rust_setup {
} }
function _ruby_setup { function _ruby_setup {
if is_osx;
then
export RBENV_ROOT="$(brew --prefix rbenv)" export RBENV_ROOT="$(brew --prefix rbenv)"
add_to_path "$RBENV_ROOT/bin" add_to_path "$RBENV_ROOT/bin"
fi
hash rbenv 2> /dev/null && eval "$(rbenv init - --no-rehash)" hash rbenv 2> /dev/null && eval "$(rbenv init - --no-rehash)"
} }