DEV Community

Discussion on: Devs, why do you use terminal tabs over tmux windows?

Collapse
 
dmerand profile image
Donald Merand

I've been using tmux for maybe 1/2 a year now (after years of reading hype), and can say that it's definitely replaced terminal tabs for me. There's a strong argument to be made for using the same tool across all local + remote machines - it's much faster under the hands.

I use tmux sessions + panes all the time. I've usually got 4-8 named sessions (which correspond to code repos typically), each with three or so panes, running on my main machine. Each server to which I periodically connect is running another few sessions. However, I don't see the point of windows in tmux, and have never once used them.

My reasoning is: you can name a session (prefix-$), and you can easily list sessions (prefix-s), so it's easy to know where you are with them. Panes are obviously helpful for viewing things side-by-side. But windows can disappear without a trace - it's hard to know how many windows you have open in a session, and it's hard to see what's going on with your windows all at once.

I think this is an idiosyncratic approach, but I've found tmux much more approachable by simply cutting windows entirely out of the equation and focusing on sessions + panes.