Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overriding tmux shortcuts

Tags:

terminal

tmux

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.

like image 415
lolski Avatar asked Sep 17 '13 06:09

lolski


1 Answers

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.

like image 195
Joe Casadonte Avatar answered Sep 23 '22 18:09

Joe Casadonte