tmux_x Cheat Sheet

A cheat sheet in English by Tomcat
6,434 views 1,903 downloads 19 Sep 2019 History
3.7 avg · 0 ratings

Sessions

list all sessions
tmux ls
attach session
tmux a -t <se­ssion name>
kill session 2
tmux kill-sess -t 2
kill all sessions
tmux kill-s­erver

Mode

init
ctrl + a

Panes

split vertical
%
split horizontal
"
switch pane
<ar­row>
resize pane
ctrl + <ar­row>
zoom/u­nzoom
z
close pane
x
convert pane to window
!

Windows

detach session
d
new window
c
close window
&
rename window
,
switch <tab number>
<tab number>

Copy Mode

init
prefix + [
quit mode
q
top line
g
bottom line
G
search
/
next occurence
n
prev. occurence
N
start selection
space
copy selection
enter
paste
prefix + ]

Config File

# change panel using arrow
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

# remap prefix
set -g prefix C-a
bind C-a send-prefix
unbind C-b

# scroll using mouse
set -g mouse on

# disable auto renaming window
set -g allow-rename off

# copy mode
setw -g mode-keys vi

Badges

Nice Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.