TMUX cheat sheets
tmux new -s {session_name} -n {name}
- create new session and specify window nametmux {attach|a|at} -t {session_name}
- attach to sessiontmux ls
- list sessionstmux kill-session -t {session_name}
- kill session
Prefix ?
- helpPrefix d
- detachPrefix t
- big clock
Prefix :
- command modenew-window -n {name} {command}
- create new window and execute command
:new
- new sessionPrefix s
- list sessionsPrefix $
- name sessionPrefix (
- previous sessionPrefix )
- next sessionPrefix L
- last session
Prefix c
- create new windowPrefix ,
- rename windowPrefix n
- next windowPrefix p
- previous windowPrefix {n}
- go to window nPrefix f
- find window by namePrefix w
- list windowsPrefix &
- kill window
Prefix %
split panes by vertical (see tmux-pain-control)Prefix "
split panes by horizontal (see tmux-pain-control)Prefix o
- cycle through the panesPrefix {arrow key}
- navigate to specific pane (see tmux-pain-control)Prefix space
- cycle thought layoutsPrefix x
- close panePrefix q
- show panes numbersPrefix z
- switch to whole window mode and backPrefix {
- move the current pane left (see tmux-pain-control)Prefix }
- move the current pane right (see tmux-pain-control):setw synchronize-panes
- toggle panes synchronization
Prefix [
- start copy modePrefix ]
- past from copy mode^
- back to indentationesc
- clear selectionenter
- copy selectionj
- cursor downh
- cursor leftl
- cursor rightk
- cursor downL
- cursor to bottom lineM
- cursor to middle lineH
- cursor to top lined
- delete entire lineD
- delete to end of line$
- end of line:
- goto line⌃-d
- half page down⌃-u
- half page up⌃-f
- next pagew
- next wordp
- paste buffer⌃-b
- previous pageb
- previous wordq
- quit mode⌃-down
,⌃-j
- scroll down⌃-up
,⌃-k
- scroll upn
- next search match?
- search backward/
- search forward0
- start of linespace
- start selection
set -g mode-mouse on
- enable mouse support
prefix + /
- regex search (strings work too)
prefix + ctrl-f
- simple file searchprefix + ctrl-g
- jumping over git status files (best used aftergit status
command)prefix + alt-h
- jumping over SHA-1 hashes (best used aftergit log
command)prefix + ctrl-u
- url search (http, ftp and git urls)prefix + ctrl-d
- number search (mnemonic d, as digit)prefix + alt-i
- ip address search
o
- "open" a highlighted selection with the system default program.open
for OS X orxdg-open
for Linux.⌃-o
- open a highlighted selection with the$EDITOR
https://github.com/tmux-plugins/tmux-pain-control
Prefix + h
,Prefix + C-h
- select pane on the leftPrefix + j
,Prefix + C-j
- select pane below the current onePrefix + k
,Prefix + C-k
- select pane abovePrefix + l
,Prefix + C-l
- select pane on the right
Prefix + shift + h
- resize current pane 5 cells to the leftPrefix + shift + j
- resize 5 cells in the up directionPrefix + shift + k
- resize 5 cells in the down directionPrefix + shift + l
- resize 5 cells to the right
Prefix |
split panes by verticalPrefix -
split panes by horizontal
Prefix <
moves current pane one position to the leftPrefix >
moves current pane one position to the right
Prefix ⌃-s
- savePrefix ⌃-r
- restore
Prefix - y
- copies text from the command line to clipboard
y
- copy selection to system clipboardY
- copy selection and paste it to the command line
https://github.com/christoomey/vim-tmux-navigator
⌃-h
- Left⌃-j
- Down⌃-k
- Up⌃-l
- Right⌃-\
- Previous split