Root Folder for Current Ruby/RVM Installation
RUBY_HOME=`which ruby`
export RUBY_HOME=${RUBY_HOME%\/*bin\/ruby}
echo $RUBY_HOME
will output something like:
/home/developer/.rvm/rubies/ruby-2.0.0-p247
Written by Irakli Nadareishvili
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#