Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use tmux when working on my desktop, and then if I want to work outside on my laptop I ssh over to the desktop and attach to the same session. Then when I close my laptop and go back inside, the session visible on my desktop is shrunken to show only the rows/columns available on my smaller laptop screen. Without opening up my laptop again, is there some way to force the laptop to detach from the session? Or at least to resize tmux to use all the available space on my desktop screen?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

By default<prefix> D gives you a list of connected clients, and which ever you select is disconnected.

You can also use choose-client from the command line as an augment to tmux, or at tmux's command line <prefix> :

where prefix is C-b by default

share|improve this answer
    
Wow, it's kind of fun being able to detach myself! <prefix> D works great. –  Paul A Jungwirth Jun 22 '13 at 2:54
    
The way you say that, and the phrasing of your question makes me wonder if you know about <prefix> d, the normal way of detaching? (before you close your laptop, you could just detach normally) –  demure Jun 22 '13 at 3:00
    
Yes, I know <prefix> d, but I rarely do that because if I'm getting up for lunch or to stretch, I may not know whether I'm going to resume work from my office or the back porch. :-) –  Paul A Jungwirth Jun 22 '13 at 4:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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