在Emacs的eshell中使用RVM [英] Using RVM in eshell of Emacs

查看:86
本文介绍了在Emacs的eshell中使用RVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在emacs的eshell中使用RVM,我无法设置ruby版本。为什么?
环境:Ubuntu 9.10

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]


推荐答案

据我所知,RVM依赖于shell是常规 UNIX shell。正确的解释器等的选择是使用shell变量完成的,而这些变量不适用于具有自己配置方式的eshell。

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.

一种解决方案是使用 M - X 条款然后在其中使用常规外壳。另一种方法是给 rvm.el 做个尝试。我个人也没有尝试过。

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.

这篇关于在Emacs的eshell中使用RVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆