In tmux can I resize a pane to an absolute value

Hamish Downer picture Hamish Downer · Apr 22, 2013 · Viewed 96.1k times · Source

Is it possible to tell tmux to "resize a pane to 5 lines high"?

I know I can do resize-pane -U 3 to move the dividing line, but sometimes when logging in with a different size monitor the size has changed by a lot of lines that I can't judge by eye. I'd like to be able to have one command that will change one window to exactly the right number of lines rather than faffing about with multiple resize-pane commands.

Answer

leandronsp picture leandronsp · Apr 24, 2013

What about Ctrl-B then (pressing Ctrl) + arrow?

If in tmux < 1.8, doing this by Ctrl-B then (Esc + arrow) * n, where n is the number of times you want to resize.