Table of contents
Open Table of contents
Usage
Install tmux
sudo apt install tmux
Install tpm (Tmux Plugin Manager)
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
Reload TMUX environment so TPM is sourced:
# type this in terminal if tmux is already running
tmux source $XDG_CONFIG_HOME/tmux/tmux.conf
Keybinds
To enter commands into tmux, you must enter a specific keybind, which is called the prefix key, followed by the command. My prefix key is ctrl + space.
To refresh tmux and install new plugins, type prefix + I (capital i, as in Install)
Window Management Commands
Command Keybind | Command Description |
---|---|
prefix + c | create new window and switch to it |
prefix + # | switch to window # |
prefix + n | switch to next window |
prefix + p | switch to previous window |
prefix + : | swap window with next window |
prefix + ; | swap window with previous window |
prefix + & | kill window and all panes in it |
Pane Management Commands
Command Keybind | Command Description |
---|---|
prefix + % | split a pane horizontally into two panes |
prefix + “ | split a pane vertically into two panes |
prefix + { | swap pane with previous pane |
prefix + } | swap pane with next pane |
prefix + h / ← | switch to pane on the left |
prefix + j / ↓ | switch to pane below |
prefix + k / ↑ | switch to pane above |
prefix + l / → | switch to pane on the right |
prefix + q + # | switch active pane to pane # |
prefix + z | zoom in/out of pane to take up full window |
prefix + ! | break pane into a new window |
prefix + x | kill pane |
Miscellaneous Commands
Command Keybind | Command Description |
---|---|
v | start selection in copy mode |
y | yank (copy) selection to system clipboard |
ctrl + v | toggle between rectangular and line selection mode |
prefix + r | refresh tmux configuration |