Pane ManagementPrefix + Ctrl+arrow, Prefix + z (zoom)
resize-pane
Short form: resizep
Resize a pane, either by a specified amount or to an absolute size.
Synopsis
bash
tmux resize-pane [-DLMRUZ] [-t target-pane] [-x width] [-y height] [adjustment]Options
| Flag | Description |
|---|---|
| -D | Resize down |
| -U | Resize up |
| -L | Resize left |
| -R | Resize right |
| -Z | Toggle zoom (fullscreen) |
| -x width | Set absolute width |
| -y height | Set absolute height |
Examples
Resize down by 5 cells
bash
tmux resize-pane -D 5Resize right by 10 cells
bash
tmux resizep -R 10Set width to 80 columns
bash
tmux resizep -x 80Toggle zoom (fullscreen)
bash
tmux resizep -ZDefault Keybinding
Prefix + Ctrl+arrow, Prefix + z (zoom)
Default prefix is Ctrl+b
Pro Tips
- •Prefix + z toggles zoom (fullscreen) - very useful for focusing
- •Hold Prefix and press arrow keys repeatedly to resize