I would like to use RVM with tcsh; how do I do this?
As far as I can see, there are no "official" instructions for this. I followed the instructions on "Using RVM with tcsh", but this didn't work for me; in particular, I don't have access to the Ruby binaries ruby
, bundle
, irb
, rspec
, etc.
What I did was get all rvm-related environment variables from bash with
env | grep -i rvm
.I then copied them to my
~/.tcshrc
, and substituted the ruby version with$ruby_version
:$ruby_version
will be set to the default; if it's empty; to use a different ruby version, I can do:Using (some) rvm commands, such as
rvm install
orrvm list
also seem to work; butrvm use
doesn't (you need to use the$ruby-version
workaround). I didn't check all the other commands, though.This worked well for me on OS X Yosemite 10.10.2, though it adds about a 5-second delay to opening a Terminal window each time due to the RVM initialization.
Create this file:
https://gist.github.com/chetstone/1361149
I put it in ~/.rvm/rvm.rb
Add to your .cshrc/.tcshrc:
ruby -v
now returns the correct version.