Resizing tmux session based on iterm window size instead resizing the iterm window based on the tmux session size.
Thanks for filing an issue! Please answer the questions below so I can help you.
- iTerm2 version: 3.3.6
- OS version: MacOS Catalina 10.15.1 (19B88
- Attach ~/Library/Preferences/com.googlecode.iterm2.plist here (drag-drop from finder into this window)com.googlecode.iterm2.plist
Detailed steps to reproduce the problem:
- Connect to a remote server via SSH from a large screened desktop.
- Open a tmux session with iterm2 integration:
tmx2 -CC
: Note this is on a large desktop screen. - Open a few tmux windows in the same tmux session. 'Open new tmux windows as tabs in the attaching window' so iterm remains "large" in size.
- Detach from the tmux session and close the ssh connection.
- ssh into the server from a smaller screen laptop and reattach to the same tmux session. iterm resizes the window and the tmux session to the size of the laptop screen.
- Detach from the tmux session and close the ssh connection.
- ssh back into the server from the desktop and reattach the same tmux session. Now, iterm resizes the large window to the size of the laptop screen (since it's probably saved that value from the last attachment)
What happened: iterm resizes the window based on the size of the tmux session.
What should have happened: iterm should resize the size of the tmux session from the size of the current window.
P.S. This becomes really frustrating as I have 5+ tmux sessions and I have to use the mouse to manually resize each session after using my laptop.