From d7df6ff269a42e3b2ee0b1b2ea67e1c9605930ec Mon Sep 17 00:00:00 2001 From: Holger Just Date: Mon, 18 Jul 2011 12:41:38 +0200 Subject: [PATCH] Remove RUBY_VERSION --- .bashrc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.bashrc b/.bashrc index 9c4ea5f..6fe935a 100755 --- a/.bashrc +++ b/.bashrc @@ -47,11 +47,6 @@ if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi -# Fix Ruby version -if [[ !`which install_ruby 2>/dev/null` ]] && [[ `which ruby 2>/dev/null` ]]; then - export RUBY_VERSION=$(ruby --version | sed -e "s/^ruby \(.\..\..\).*$/\1/") -fi - # NVM [[ -s $HOME/.nvm/nvm.sh ]] && source $HOME/.nvm/nvm.sh @@ -245,9 +240,6 @@ alias sc="script/console" alias redcar="wrapped_redcar --fork" -# shorthands - i do this a lot -ruby_version() { if [[ -z $1 ]]; then echo $RUBY_VERSION; else RUBY_VERSION=$1; fi; } - # if cat is called on a directory, call ls instead cat() { if [[ $# = 1 ]] && [[ -d $1 ]]; then