From b3a272000177845c041604a2f7e880ec7610b470 Mon Sep 17 00:00:00 2001 From: Holger Just Date: Tue, 10 Dec 2013 17:45:07 +0100 Subject: [PATCH] Initialize RVM later to make it the last one to adapt the PATH --- .bashrc | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.bashrc b/.bashrc index 73c8643..e57bc45 100644 --- a/.bashrc +++ b/.bashrc @@ -38,20 +38,6 @@ export HISTSIZE=1000 export HISTFILESIZE="" shopt -s histappend >/dev/null 2>&1 -# Load RVM -if [[ -s $HOME/.rvm/scripts/rvm ]]; then - source $HOME/.rvm/scripts/rvm - # tab completion for RVM - [[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion -fi - -# REE tweaks to make it faster for specs. -export RUBY_HEAP_MIN_SLOTS=1000000 -export RUBY_HEAP_SLOTS_INCREMENT=1000000 -export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 -export RUBY_GC_MALLOC_LIMIT=1000000000 -export RUBY_HEAP_FREE_MIN=500000 - # NVM [[ -s $HOME/.nvm/nvm.sh ]] && source $HOME/.nvm/nvm.sh @@ -156,6 +142,21 @@ case `uname` in *) echo "OS unknown to bashrc." ;; esac +# Load RVM +if [[ -s $HOME/.rvm/scripts/rvm ]]; then + source $HOME/.rvm/scripts/rvm + # tab completion for RVM + [[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion +fi + +# REE tweaks to make it faster for specs. +export RUBY_HEAP_MIN_SLOTS=1000000 +export RUBY_HEAP_SLOTS_INCREMENT=1000000 +export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 +export RUBY_GC_MALLOC_LIMIT=1000000000 +export RUBY_HEAP_FREE_MIN=500000 + + # setting up editor if not yet done [[ -z "$EDITOR" ]] && EDITOR="nano" [[ -z "$SVN_EDITOR" ]] && SVN_EDITOR="$EDITOR"