Added Ruby (Gems) paths to _bashrc.
authorW. Trevor King <wking@drexel.edu>
Thu, 30 Sep 2010 16:22:25 +0000 (12:22 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 30 Sep 2010 16:22:25 +0000 (12:22 -0400)
_bashrc

diff --git a/_bashrc b/_bashrc
index ffc398d3ce75e1224f76abba1a30bb49ca31702c..ac752b116bbef0ecc066ee34de153b8c8cb48056 100644 (file)
--- a/_bashrc
+++ b/_bashrc
@@ -7,7 +7,7 @@ if [ -f /etc/bashrc ]; then
 fi
 
 # personalize path
-export PATH=$HOME/bin:$HOME/script:$HOME/script/python:$HOME/script/lab:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
+export PATH=$HOME/bin:$HOME/script:$HOME/script/python:$HOME/script/lab:$HOME/lib/ruby/gems/1.8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 export LD_LIBRARY_PATH=~/lib
 
 # personalize latex path
@@ -20,6 +20,13 @@ export PYTHONPATH=".:$HOME/lib/python:$HOME/lib/python$PYTHON_VERSION/site-packa
 # append personal manpages to manpath
 export MANPATH=":$HOME/share/man"
 
+# personalize ruby and rubygems paths
+# from http://docs.rubygems.org/read/chapter/15
+PREFIX=$HOME
+export GEM_HOME=$PREFIX/lib/ruby/gems/1.8
+export RUBYLIB=$PREFIX/lib/ruby:$PREFIX/lib/site_ruby/1.8
+
+
 # If not running interactively, don't do anything else
 [ -z "$PS1" ] && return