I wrote this command to reconnect an active screen session when Terminator is opened. It works find but there has got to be a better way to to it

This is goes in the Terminator config file (note myhost is my computer name)

r=$(screen -ls | awk '{print $1}' |grep myhost); screen -r $r
link|improve this question
@Johnsyweb. Thats it. Thanks! – Randim Jan 13 at 22:50
feedback

1 Answer

Yup, definitely over-complicating things:

screen -R

Where:

-R -- reattach if possible, otherwise start a new session

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.