Is it a good idea to put "screen -r" in my .bashrc?
Posted
by
marcusw
on Super User
See other posts from Super User
or by marcusw
Published on 2010-12-21T19:49:23Z
Indexed on
2010/12/21
19:55 UTC
Read the original article
Hit count: 238
I'd like to use screen to keep ssh sessions alive on my server. It would be nice if I could automatically resume any running session for my user when I log in. The straightforward way to do this would be adding "screen -r" to my .bashrc, and this seems to work fine. I'm just wondering if this will break anything under conditions which I haven't tested yet. Anyone with experience here who can tell me whether this is what I should do?
© Super User or respective owner