Show Menu
Cheatography
This is a draft cheat sheet. It is a work in progress and is not finished yet.

Set prefix key

# Change prefix key from C-b to C-a
set-option -g prefix C-a
unbind C-b
bind-key C-a send-prefix
.tmux.conf

Act like vim

set -g status-keys vi                                                                                                                                                                                      
setw -g mode-keys vi                                                                                                                                                                                       
bind h select-pane -L                                                                                                                                                                                      
bind j select-pane -D                                                                                                                                                                                      
bind k select-pane -U                                                                                                                                                                                      
bind l select-pane -R                                                                                                                                                                                      
bind-key -r C-h select-window -t :-                                                                                                                                                                        
bind-key -r C-l select-window -t :+
.tmux.conf
 

Plugins

tpm
plugin manager
tmux-p­ref­ix-­hig­hlight
show if prefix is on in status line
tmux-cpu
show cpu usage in status line
tmux-r­esu­rrect
save and restore tmux sessions