Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using RVM in eshell of Emacs

Using RVM in eshell of emacs, I am not able to set the ruby version. Why? Environment : Ubuntu 9.10

/media/Work/rubyworkspace $ ruby -v 
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
/media/Work/rubyworkspace $ rvm use 1.9.2
Using /usr/local/rvm/gems/ruby-1.9.2-p180
/media/Work/rubyworkspace $ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
like image 959
kgthegreat Avatar asked Apr 02 '11 04:04

kgthegreat


1 Answers

As far as I can tell, RVM relies on the shell being a "regular" UNIX shell. Selection of the correct interpreter etc. is done using shell variables and these don't apply to eshell which has it's own way of configuring stuff.

One solution is to use M-X term and then use a regular shell inside that. The other is to give rvm.el a shot. I personally have not tried either.

like image 189
Noufal Ibrahim Avatar answered Sep 19 '22 20:09

Noufal Ibrahim