Tmux Shortcut – How to Create a Shortcut to Resize Panes in Tmux Window

command linelinuxosxsshtmux

I am having lots of issues with tmux on Mac.

One problem I have is that I cannot bind a key in my tmux.conf to resize my panes.

What I need is the CTRL-b: resize-pane -U 10 I currently do to increase the size of the pane upwards ten cells (or downwards or left or right) to be done by a key shortcut and not to actually have to type this over and over (which I currently do unfortunately).

But I can not find a way to configure this since on Mac, it seems that CTRL and other keys work diffently than on Linux.

Can anyone please help me out?

Best Answer

In ~/.tmux.conf:

bind e resize-pane -U 10

Then, tmux source-file ~/.tmux.conf. (another useful shortcut: use the same principle).

Related Question