tmux equivalent of "screen -R"?

Posted by Drew Frank on Super User See other posts from Super User or by Drew Frank
Published on 2012-10-13T19:31:37Z Indexed on 2012/10/13 21:41 UTC
Read the original article Hit count: 185

Filed under:

The tmux attach command acts more like a combination of screen -r and screen -x -- first it trys to attach to the most recently detached session, and then if none is available it will attach to a currently attached session. I want to emulate the behavior of screen -R: first try to attach to a detached session, then start a new session if there were no detached sessions. What is the best way to achieve this in tmux?

© Super User or respective owner

Related posts about tmux