tmux 3 cheatsheet
tmux 3: Commands and configuration
7 common tmux 3 tasks.
Send keys to another pane
Type a command into a session's pane from a script.
tmux send-keys -t work 'npm test' Enter
Reload the configuration
Apply changes to ~/.tmux.conf without restarting tmux.
tmux source-file ~/.tmux.conf
Turn on mouse support
Click to select panes and windows, drag borders and scroll. Add it to ~/.tmux.conf.
set -g mouse on
Change the prefix to Ctrl-a
Replace the default prefix in ~/.tmux.conf.
unbind C-b
set -g prefix C-a
bind C-a send-prefix
Number windows from 1
Start window and pane numbering at 1 so the keys match the keyboard row.
set -g base-index 1
setw -g pane-base-index 1