开发者

Rvm broken inside screen

I'm using screen and even after rvm 1.9.2 and h开发者_C百科aving an appropriate .rvmrc my server will still use jruby.

My .screenrc contains shell #{SHELL} rvm info shows jruby.

It's as if rvm 1.9.2 doesn't have any effect, but it works fine outside screen.


Ok, I found a solution. Create a .screenrc file and put this snippet inside:

shell -$SHELL

The official instructions omitted the dash.


Instead of making screen systematically use a login shell, you can source your ~/.profile file once the screen terminal is started.

It somehow promotes the shell started by screen to a login shell.


screen might be replacing your PATH with something more restricted. Inside your screen session, do echo $PATH. It should show RVM's normal pre-pended sandbox in your home directory.

If it is truncating, you'll need to nose around in the docs OR... ask over on the SO peer sites Unix and Linux or Super User as this question is pretty off-topic for Stack Overflow.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜