13

Is it possible to change tmux shortcuts such that:

  1. ctrl+t opens new window
  2. ctrl+w closes a window
  3. ctrl+tab cycles through a list of windows
  4. other similar shortcuts for splitting horizontally / vertically

I really like its features but am always of the opinion that the less shortcut I have to learn the better.

lolski
  • 14,707
  • 7
  • 32
  • 47

1 Answers1

19

It seems like you want to do this without the command prefix key. If that's correct, add the following commands to your ~/.tmux.conf file:

bind-key -n C-t new-window
bind-key -n C-w kill-window
bind-key -n C-Tab next-window

If you want to use the prefix key, then drop the -n from the above commands.

Joe Casadonte
  • 14,678
  • 10
  • 43
  • 54