Rvm broken inside the screen

I use the screen and even after rvm 1.9.2 and having the corresponding .rvmrc, my server will still use jruby. My.screenrc contains the shell # {SHELL} rvm info shows jruby. As if rvm 1.9.2 has no effect, but it works great off screen.

+6
source share
3 answers

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

shell -$SHELL 

Official instructions omitted by dashes.

+8
source

Instead of systematically using the screen to log in, you can send the ~/.profile file after starting the screen terminal.

It somehow pushes the shell running on the screen into the login shell.

0
source

screen can replace your PATH with something more limited. Inside the screen session, do echo $PATH . It should show the usual pre-saved RVM sandbox in your home directory.

If it is truncated, you will need to plunge into the documents or ... ask about the Unix and Linux SO sites or Superuser , as this question is quite off topic.

-1
source

Source: https://habr.com/ru/post/886276/


All Articles