3 ms·
The best way to use tmux is with -CC, which iTerm maps to native UI. tmux tabs and panes become native tabs and panes and your session is immortal, and it’s a f
by saagarjha 4y ago
The best way to use tmux is with -CC, which iTerm maps to native UI. tmux tabs and panes become native tabs and panes and your session is immortal, and it’s a far better experience than mosh or whatever the latest thing in this area is. I have never bothered to figure out how the keybindings actually work and I probably never will, but I enjoy using it all the time because of this.
- ledauphin 4y agodoes all of this work with the tmux keyboard shortcuts? the main reason I use tmux is to avoid the mouse...
- crucialfelix 4y agoYou use iTerm shortcuts instead. You can customize those as you like. So it feels just like using iTerm, but the panes are running in tmux. The main reason to do this (for me) is to use (tmuxp)[https://tmuxp.git-pull.com https://tmuxp.git-pull.com] to configure window sets for different projects / clients and start them up quickly.
- nrclark 4y agoAgreed 100%. This is iTerm2's killer feature IMO, and it's the only thing that keeps me on a Mac for my work laptop.
- crucialfelix 4y agoThe other great reason to use iTerm to run tmux is that copy and paste work correctly. I started doing this last week along with tmuxp for managing window sets. It works great.
- memco 4y agoI had trouble getting the tmux setup working in iterm. The main page suggests -CC, but the best practices wiki[0] says to use `-CC new -A -s main`, but this causes iterm to warn that a session is already started and doesn't actually create or reattach like I expected. I also had trouble getting the tmux select-layout to work: when I tried it all my panes just exited with an error. I would like to have iterm behave similarly to Kitty's tall layout[1] which I think is the same thing as tmux's main layout, but haven't figured out how to make it work. Anybody have tips on making these wek? [0]: https://gitlab.com/gnachman/iterm2/-/wikis/tmux-Integration-Best-Practices#what-tmux-command-should-i-use https://gitlab.com/gnachman/iterm2/-/wikis/tmux-Integration-... [1]: https://sw.kovidgoyal.net/kitty/layouts/#the-tall-layout https://sw.kovidgoyal.net/kitty/layouts/#the-tall-layout
- 112233 4y agoIs there yet any linux terminal that supports tmux -CC mode? iTerm is not coming to Linux, and using tmux on anything else feels really meh.
- mdaniel 4y agohttps://github.com/wez/wezterm/issues/336 https://github.com/wez/wezterm/issues/336 is tracking that for wezterm although I can attest that they're right, it's pretty rough right now I thought there was another one, but searching for "tmux" in the issues of the major terminal emulators is worthless since there are so many pages
- d4rkp4ttern 4y agoIndeed — one of the best tips I learned from HN is to use iTerm2’s Tmux integration so I never have to even think about tmux commands other than tmux -CC to start a session and tmux -CC attach to reattach.