Only set RBENV_ROOT with brew in OSX
This commit is contained in:
parent
1b4727c0b7
commit
9e2ad4173f
@ -80,8 +80,11 @@ function _rust_setup {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _ruby_setup {
|
function _ruby_setup {
|
||||||
export RBENV_ROOT="$(brew --prefix rbenv)"
|
if is_osx;
|
||||||
add_to_path "$RBENV_ROOT/bin"
|
then
|
||||||
|
export RBENV_ROOT="$(brew --prefix rbenv)"
|
||||||
|
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)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user