Pane ManagementPrefix + { or } to swap
swap-pane
Short form: swapp
Swap two panes. If -U is given, swap with the previous pane; if -D, swap with the next pane.
Synopsis
bash
tmux swap-pane [-dDUZ] [-s src-pane] [-t dst-pane]Options
| Flag | Description |
|---|---|
| -D | Swap with the next pane |
| -U | Swap with the previous pane |
| -d | Don't change active pane |
| -s src-pane | Specify source pane |
| -t dst-pane | Specify destination pane |
Examples
Swap with next pane
bash
tmux swap-pane -DSwap with previous pane
bash
tmux swap-pane -USwap pane 1 and pane 2
bash
tmux swapp -s 1 -t 2Default Keybinding
Prefix + { or } to swap
Default prefix is Ctrl+b
Pro Tips
- •Prefix + { swaps with previous pane, } with next
- •Useful for rearranging your layout