From de64da88afa6695a5803a1d0b4a5bd9b572c6fd9 Mon Sep 17 00:00:00 2001 From: Nick Nisi Date: Mon, 14 May 2012 09:39:21 -0500 Subject: [PATCH] Added rvm info to bashrc/zshrc --- bash/bashrc.symlink | 2 ++ zsh/zshrc.symlink | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/bash/bashrc.symlink b/bash/bashrc.symlink index 80b5d05..421e56b 100644 --- a/bash/bashrc.symlink +++ b/bash/bashrc.symlink @@ -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 diff --git a/zsh/zshrc.symlink b/zsh/zshrc.symlink index cad26e0..0ee59dc 100644 --- a/zsh/zshrc.symlink +++ b/zsh/zshrc.symlink @@ -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" -