From 8376885af098bfd7c0f5771132017f2c517c9d7d Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Sat, 13 Aug 2011 09:00:39 -0700 Subject: [PATCH] load rvm lazily --- zsh/zshrc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zsh/zshrc b/zsh/zshrc index 4682c0d..a58ecbe 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -69,8 +69,13 @@ else fi # Load RVM into a shell session *as a function* -[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" - +if [[ -s "~/.rvm/scripts/rvm" ]]; then + rvm () { + unset rvm + . ~/.rvm/scripts/rvm + rvm "$@" + } +fi # 2. Limits # =========