From b3f9632e6747b690443062d74cc535818d663a76 Mon Sep 17 00:00:00 2001 From: Gea-Suan Lin Date: Tue, 22 Sep 2015 16:31:10 +0800 Subject: [PATCH] Move rvm to last position to avoid warning about PATH. --- .zshrc.local | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zshrc.local b/.zshrc.local index bc07797..f8d99bc 100644 --- a/.zshrc.local +++ b/.zshrc.local @@ -5,10 +5,12 @@ alias "update=(cd ~/git; make all)" [[ -s "$HOME/.nvm/nvm.sh" ]] && source "$HOME/.nvm/nvm.sh" [[ -s "$HOME/perl5/perlbrew/etc/bashrc" ]] && source "$HOME/perl5/perlbrew/etc/bashrc" [[ -s "$HOME/.phpbrew/bashrc" ]] && source "$HOME/.phpbrew/bashrc" -[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # export PYENV_ROOT="${HOME}/.pyenv" if [ -d "${PYENV_ROOT}" ]; then export PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}" eval "$(pyenv init -)" fi +# +# Put rvm at last position. +[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"