tmux Window Commands Cheat Sheet
July 2023
| Action | Command | |---------------------------|------------| | Create new window | <prefix> c | | Move to next window | <prefix> n | | Move to previous window | <prefix> p |
| Action | Command | |------------------------------|-----------------------| | Make vertical window panes | <prefix> % | | Make horizontal window panes | <prefix> " | | Switch panes | <prefix> <arrow> | | Resize pane (mac) | <prefix> :resize-p -L 4 | | Resize pane (GNU) | <prefix> Ctrl+<arrow> |
The <prefix> :resize-p -D 4 command means to press your prefix (e.g. Ctrl+b)) then press : to enter the command line for the rest of the command.
(e.g. resize-p -D 4). The -D flag indicates down. The other options are -U for up, -L for left, and -R for right. The "4" in the example is the amount that can be changed to your desired setting.
end of line