From 6a110264249824bc2b4354fec4166b5c45217311 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Mon, 19 Feb 2018 03:50:24 +0800 Subject: [PATCH] Use rbenv. --- .bashrc.local | 6 ++++-- .zshrc.local | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.bashrc.local b/.bashrc.local index 069d4f6..cca27d0 100644 --- a/.bashrc.local +++ b/.bashrc.local @@ -14,5 +14,7 @@ fi # export N_PREFIX="$HOME" # -# Put rvm at last position. -[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" +if [ -d "${HOME}/.rbenv" ]; then + export PATH="${HOME}/.rbenv/bin:${PATH}" + eval "$(rbenv init -)" +fi diff --git a/.zshrc.local b/.zshrc.local index 3ee195f..6b6437d 100644 --- a/.zshrc.local +++ b/.zshrc.local @@ -14,5 +14,7 @@ fi # export N_PREFIX="$HOME" # -# Put rvm at last position. -[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" +if [ -d "${HOME}/.rbenv" ]; then + export PATH="${HOME}/.rbenv/bin:${PATH}" + eval "$(rbenv init -)" +fi