Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rvm broken inside screen

I'm using screen and even after rvm 1.9.2 and having 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.

like image 327
Michiel de Mare Avatar asked Apr 19 '11 22:04

Michiel de Mare


Video Answer


1 Answers

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

shell -$SHELL

The official instructions omitted the dash.

like image 188
Michiel de Mare Avatar answered Oct 19 '22 07:10

Michiel de Mare