This video demonstrates the seamless integration of iTerm2 and tmux using a custom shell function tmssh.
With a single command, you can:
Auto-connect to your remote server via SSH.
Instantly restore your previous tmux session (including window splits and tabs).
Use iTerm2's native UI to manage tmux thanks to Control Mode (-CC).
What’s happening in the video:
Bottom-Right (Command Terminal): Running tmssh m1 on a local MacBook.
Command Menu: iTerm2 detects the tmux Control Mode and handles the handshake.
Top-Left (Server Window): A new iTerm2 window automatically pops up, restoring the exact state of the previous session on the Fedora server.
🔗 Full Tutorial & Script (Blog Post): https://velog.io/@j9m/iTerm2%EC%99%80-tmux...