From cca40681694dab7bd294c5379d681180d89f2d00 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Thu, 24 Jan 2019 16:12:59 +0800 Subject: [PATCH] Add rvm support if it exists. --- .bashrc.local | 4 ++++ .zshrc.local | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.bashrc.local b/.bashrc.local index ad19254..98ddb35 100644 --- a/.bashrc.local +++ b/.bashrc.local @@ -19,3 +19,7 @@ if [ -d "${HOME}/.rbenv" ]; then export PATH="${HOME}/.rbenv/bin:${PATH}" eval "$(rbenv init - --no-rehash)" fi +# +if [ -d "${HOME}/.rvm" ]; then + source "${HOME}/.rvm/scripts/rvm" +fi diff --git a/.zshrc.local b/.zshrc.local index ef5a4f2..26900a9 100644 --- a/.zshrc.local +++ b/.zshrc.local @@ -19,3 +19,7 @@ if [ -d "${HOME}/.rbenv" ]; then export PATH="${HOME}/.rbenv/bin:${PATH}" eval "$(rbenv init - --no-rehash)" fi +# +if [ -d "${HOME}/.rvm" ]; then + source "${HOME}/.rvm/scripts/rvm" +fi