Hacker News new | ask | show | jobs
by scardine 3430 days ago
tmux is a terminal multiplexer - if you have ever used the `screen` command you already know what it is.

I use a macbook pro with iterm2, and I prefer to use a terminal multiplexer instead of tabs or the native screen split of iterm2.

If you ssh remote boxes a lot, it is very useful because you will not lose your session in case of an occasional disconnection.

2 comments

Iterm2 also has a nice tmux integration. You can connect to a session but use native tabs and panes. It even works on remote servers over ssh. You just add a '-CC' arg. (You may also have to enable it in the prefs, don't remember for sure)
This is what I usually do to connect to a remote server and enter a tmux session:

  ssh hostname -t "tmux -CC attach || tmux -CC"
Of course, I picked this up from an HN comment :)
I've never been able to get iTerm2's tmux integration to work well enough to warrant the bother.
In fact I use byobu instead of plain tmux.
iTerm2 has tmux integration. No need to give up native tabs!