Comment by fouc

1 day ago

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.

  • I'll bite. What's so obvious? I suspend jobs in bash all the time while using tmux.

    • Often TMUX it's for tasks you woudn't suspend. And, if any, you can just use kill -STOP and kill -CONT among other signals from another tmux pane.

      2 replies →