Serious question, as a user of tmux - why would you want your new terminal windows to automatically connect to tmux every time?
Serious question, as a user of tmux - why would you want your new terminal windows to automatically connect to tmux every time?
For example, I regularly run jobs that can go on for hours and hours, without much predictability - so using tmux means I can start the job at work, but then check in on it later on my iPhone during the commute back home, and then from my home-office system later, without fuss.
Using tmux this way makes your remote host a reliable development partner instead of giving you hassles if you lose your connection/need to relocate to another network provider/use a different terminal client than the one you started at the office, etc.
To me this reads like "As a user of X11, why would you want your session to start a desktop environment on login?"
Because the first and only thing I'd do unless something is broken is run [startx/tmux] anyway.
So when I hit CMD-T or CMD-N on my local machine, I don't _want_ to be connected to my tmux session, since I'd just have to hit `D every time to disconnect, and then run "ssh elsewhere" and connect to tmux there.
Using tmux on a remote host means that you can always detach and re-attach to the remote host session when you want to. You can do that on your local host too, but this is only useful, ultimately, if you have long-running process that you want to leave running - and be able to re-attach to - while also being able to quite iTerm2 completely ..