Comment by suslik

1 day ago

Wow, I've tried tmux like a hundred times and could never learn to like it, falling back to screen and promising to myself - never again. I'm going to break my promise to try this.

I've always found screen's ctrl-a is so much easier to reach for than tmux's ctrl-b. I recommend re-mapping ctrl-b to ctrl-a

  • I've had it on C-o forever to mostly stay out of readline's way, but I've been dabbling with C-Space.

  • I use Ctrl-Space.

        unbind-key C-b
        set -g prefix C-Space
        bind-key C-Space send-prefix
    

    I find it a lot easier to type than either Ctrl-A or Ctrl-B.

    • The real superpower prefix key is ` especially if you have a british mac keyboard.

  • Both C-a and C-b are so commonly used that I don’t like either of them. I ended up going with C-\ since I only rarely use that one.

  • I just remapped the keys to ctrl-z after I swapped ctrl and caps lock. As you'd never suspend stuff under tmux for obvious reasons, you'll get the whole keyset for any cli/tui software.

Isn't the screen equivalent literally this?

  Host tmux
      HostName 1.2.3.4
      IdentityFile ~/.ssh/etc.etc.etc
      RequestTTY force
      RemoteCommand screen -dR

Edit: I guess it's missing the iTerm integration

> falling back to screen

So you're saying you're a masochist

  • I’ve used screen for 25 years. What am I missing without tmux?

    • mainly sessions, i think, and maybe scripability. sessions are groups of windows. i have one session per project or work mode. (one for email and connecting to remote machines, one for writing stuff, one for managing my hobbies, one for dev work...)

      2 replies →