From 770ae1a2a152e8187b48303e66d542d3a0a8e8ef Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 19 Jul 2018 21:40:35 +0100 Subject: [PATCH] Strip out stuff I no longer use from ruby setup - I install rbenv via Homebrew now, so no need to check for it's executable in ~/.rbenv/bin anymore. - I haven't used rvm since around 2011 or so, not going back to it anytime soon. --- shell/ruby.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/shell/ruby.sh b/shell/ruby.sh index abd7209..529115c 100755 --- a/shell/ruby.sh +++ b/shell/ruby.sh @@ -47,18 +47,8 @@ if [ -n "$BASH_VERSION" ]; then alias bcn="bundle clean" fi -# Load rbenv or RVM depending on which is available -if [ -d "$HOME/.rbenv/bin" ]; then - path_prepend "$HOME/.rbenv/bin" -fi - if [ -n "$(command -v rbenv)" ]; then - eval "$(rbenv init -)" -fi - -if [ -s "$HOME/.rvm/scripts/rvm" ]; then - path_append "$HOME/.rvm/bin" - source "$HOME/.rvm/scripts/rvm" + eval "$(rbenv init --no-rehash -)" fi # lunchy auto-completion