Start a new session
tmux
|| tmux new -s name
|| :new
Attach to last session
tmux a
|| tmux a -t name
Show all sessions
tmux ls
|| Prefix + s
Kill session by name
tmux kill-session -t name
Kill all but the current session
tmux kill-session -a
Rename session
Prefix + $
Detach from session
Prefix + d
Move to previous/next session
Prefix + (
|| Prefix + )
See all defined keybindings
Prefix + ?
Create window
Prefix + c
Rename window
Prefix + ,
Close window
Prefix + &
Go to (previous/next/some) window
Prefix + p
|| Prefix + n
|| Prefix + 0..9
Split pane vertically/horizontally
Prefix + |
|| Prefix + -
Move the current pane left/right
Prefix + {
|| Prefix + }
Toggle between pane layouts
Prefix + Spacebar
Go to a pane by direction
Prefix + Arrow key
Resize current pane height/width
Prefix && Arrow key
Show pane numbers(type the number to goto that pane)
Prefix + q
Toggle pane zoom
Prefix + z
Convert pane into a window
Prefix + !
Close pane
Prefix + x
Enter copy mode
Prefix + [
Quit mode
q
Go to top line
g
Go to bottom line
G
Move cursor (like vim)
h
|| j
|| k
|| l
Search forward
/
Search backward
?
Next/previous keyword occurance
n
|| N
Start selection
Spacebar
Copy selection
Enter
Clear selection
Esc
Paste contents of buffer_0
Prefix + ]
Display buffer_0 contents
:show-buffer
Copy entire visible contents of pane to a buffer
:capture-pane
Show all buffers
:list-buffers
Show all buffers and paste selected
:choose-buffer
Save buffer contents to buf.txt
:save-buffer buf.txt
Delete buffer_1
:delete-buffer -b 1
Save sessions
Prefix + Ctrl-s
Restore sessions
Prefix + Ctrl-r
Search on the buffer (all regexes)
Prefix + /
Search matching files
Prefix + Ctrl-f
Search matching git status files
Prefix + Ctrl-g
Search matching urls
Prefix + Ctrl-u
Search matching numbers
Prefix + Ctrl-d
Jump between results
N
|| n
Copies text from the command line to clipboard
prefix + y
Copy pane current working directory to clipboard
prefix + Y
copy selection to system clipboard
y
"put" selection - equivalent to copying a selection, and pasting it to the command line
Y (shift-y)
"open" a highlighted selection with the system default program
o
Open a highlighted selection with the $EDITOR
Ctrl-o