From 9e2ad4173f7aabef94481faad7b9e2bf3303c60e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 3 Sep 2016 17:39:06 -0700 Subject: [PATCH] Only set RBENV_ROOT with brew in OSX --- dotfiles/lib/shellpath.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dotfiles/lib/shellpath.sh b/dotfiles/lib/shellpath.sh index 7cba5afe..7a228026 100644 --- a/dotfiles/lib/shellpath.sh +++ b/dotfiles/lib/shellpath.sh @@ -80,8 +80,11 @@ function _rust_setup { } function _ruby_setup { - export RBENV_ROOT="$(brew --prefix rbenv)" - add_to_path "$RBENV_ROOT/bin" + if is_osx; + then + export RBENV_ROOT="$(brew --prefix rbenv)" + add_to_path "$RBENV_ROOT/bin" + fi hash rbenv 2> /dev/null && eval "$(rbenv init - --no-rehash)" }