Permalink
Browse files

Added rvm info to bashrc/zshrc

  • Loading branch information...
nicknisi committed May 14, 2012
1 parent 439d1e5 commit de64da88afa6695a5803a1d0b4a5bd9b572c6fd9
Showing with 7 additions and 4 deletions.
  1. +2 −0 bash/bashrc.symlink
  2. +5 −4 zsh/zshrc.symlink
View
@@ -25,3 +25,5 @@ fi
# setting a custom prompt, with git branch info
export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
+
+PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
View
@@ -26,11 +26,12 @@ export EDITOR='vim'
export PATH=/usr/local/bin:$PATH
+# load rvm
+if [[ -d ~/.rvm ]]; then
+ source ~/.rvm/scripts/rvm
+fi
+
# check for custom bin directory and add to path
if [[ -d ~/bin ]]; then
export PATH=~/bin:$PATH
fi
-
-# load RVM
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
-

0 comments on commit de64da8

Please sign in to comment.