From 9305b7cadfd29efa8dab1e034a506a2b032ee4bc Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Thu, 14 Nov 2019 22:18:23 -0700 Subject: [PATCH] Switch to rbenv --- .zshrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.zshrc b/.zshrc index 7330de4..3eb1f78 100644 --- a/.zshrc +++ b/.zshrc @@ -32,10 +32,9 @@ if [[ -d "$HOME/.cargo" ]]; then export PATH=$HOME/.cargo/bin:$PATH fi -if [[ -s "$HOME/.rvm/scripts/rvm" ]]; then - source "$HOME/.rvm/scripts/rvm" -elif [[ -s "/usr/local/rvm/scripts/rvm" ]]; then - source "/usr/local/rvm/scripts/rvm" +which rbenv &> /dev/null +if (( !$? )); then + eval "$(rbenv init -)" fi which nvim &> /dev/null