Files
alfred-tmux-cheat-sheet/data/examples.tsv
Felix Förtsch c21f272491
Some checks failed
Build Workflow / build (push) Failing after 6s
initial commit: tmux cheat sheet alfred workflow
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 14:25:57 +01:00

6.2 KiB

1new-sessionStart a new sessiontmux new
2new-sessionStart a named sessiontmux new -s mysession
3new-sessionStart a session with a named windowtmux new -s mysession -n mywindow
4new-sessionStart or attach to existing sessiontmux new -A -s mysession
5attach-sessionAttach to last sessiontmux attach
6attach-sessionAttach to a session by nametmux a -t mysession
7detach-clientDetach from current sessiontmux detach
8list-sessionsList all sessionstmux ls
9kill-sessionKill a session by nametmux kill-session -t mysession
10kill-sessionKill all sessions but currenttmux kill-session -a
11kill-sessionKill all sessions except onetmux kill-session -a -t mysession
12kill-serverKill tmux server and all sessionstmux kill-server
13rename-sessionRename current sessiontmux rename-session newname
14switch-clientSwitch to another sessiontmux switch-client -t mysession
15has-sessionCheck if a session existstmux has-session -t mysession
16new-windowCreate a new windowtmux new-window
17new-windowCreate a named windowtmux new-window -n editor
18rename-windowRename current windowtmux rename-window newname
19kill-windowKill current windowtmux kill-window
20select-windowSelect window by numbertmux select-window -t :2
21next-windowGo to next windowtmux next-window
22previous-windowGo to previous windowtmux previous-window
23last-windowToggle last active windowtmux last-window
24swap-windowSwap two windowstmux swap-window -s 2 -t 1
25swap-windowMove current window lefttmux swap-window -t -1
26move-windowMove window between sessionstmux move-window -s foo:0 -t bar:9
27move-windowRenumber windows to remove gapstmux move-window -r
28list-windowsList windowstmux list-windows
29link-windowLink window from another sessiontmux link-window -s src:1 -t dst
30unlink-windowUnlink a windowtmux unlink-window -t :1
31split-windowSplit pane vertically (left/right)tmux split-window -h
32split-windowSplit pane horizontally (top/bottom)tmux split-window -v
33split-windowSplit pane with specific sizetmux split-window -h -l 30%
34select-paneSelect pane by numbertmux select-pane -t 1
35select-paneSelect pane to the lefttmux select-pane -L
36select-paneSelect pane abovetmux select-pane -U
37resize-paneResize pane lefttmux resize-pane -L 10
38resize-paneResize pane righttmux resize-pane -R 10
39resize-paneResize pane uptmux resize-pane -U 5
40resize-paneResize pane downtmux resize-pane -D 5
41resize-paneZoom/unzoom panetmux resize-pane -Z
42kill-paneKill current panetmux kill-pane
43swap-paneSwap two panestmux swap-pane -s 0 -t 1
44join-paneMove pane from another windowtmux join-pane -s :1
45break-paneMove pane to its own windowtmux break-pane
46display-panesShow pane numberstmux display-panes
47move-paneMove pane to another windowtmux move-pane -t :2
48last-paneToggle last active panetmux last-pane
49rotate-windowRotate panestmux rotate-window
50pipe-paneLog pane output to filetmux pipe-pane -o 'cat >> ~/tmux.log'
51copy-modeEnter copy modetmux copy-mode
52capture-paneCapture pane content to buffertmux capture-pane -pS -200
53list-buffersList all paste bufferstmux list-buffers
54show-bufferShow buffer contentstmux show-buffer
55choose-bufferChoose and paste a buffertmux choose-buffer
56save-bufferSave buffer to filetmux save-buffer ~/tmux-buffer.txt
57paste-bufferPaste buffertmux paste-buffer
58delete-bufferDelete a buffertmux delete-buffer -b 0
59load-bufferLoad file into buffertmux load-buffer ~/file.txt
60set-optionEnable mouse modetmux set -g mouse on
61set-optionSet vi mode keystmux set -g mode-keys vi
62set-optionSet base index to 1tmux set -g base-index 1
63set-optionSet escape timetmux set -sg escape-time 0
64set-optionSet history limittmux set -g history-limit 10000
65set-window-optionSet pane base indextmux setw -g pane-base-index 1
66set-window-optionEnable automatic renametmux setw -g automatic-rename on
67show-optionsShow all global optionstmux show-options -g
68show-optionsShow a specific optiontmux show-options -g status-style
69source-fileReload tmux configtmux source-file ~/.tmux.conf
70bind-keyBind key to split verticaltmux bind | split-window -h
71unbind-keyRemove a key bindingtmux unbind-key r
72list-keysList all key bindingstmux list-keys
73list-keysShow bindings for a keytmux list-keys -T prefix C-a
74choose-treeInteractive session/window choosertmux choose-tree
75choose-treeInteractive session choosertmux choose-tree -s
76command-promptOpen command prompttmux command-prompt
77show-environmentShow environment variablestmux show-environment -g
78set-environmentSet environment variabletmux set-environment -g EDITOR nvim
79display-popupShow a popup windowtmux display-popup -w 80% -h 80%
80clock-modeShow clocktmux clock-mode
81clear-historyClear pane historytmux clear-history
82confirm-beforeAsk before running commandtmux confirm-before kill-session
83refresh-clientRefresh client displaytmux refresh-client
84respawn-paneRestart a dead panetmux respawn-pane -k
85respawn-windowRestart a dead windowtmux respawn-window -k
86lock-serverLock the servertmux lock-server
87suspend-clientSuspend the clienttmux suspend-client
88wait-forWait for a signaltmux wait-for signal-name
89list-commandsList all tmux commandstmux list-commands
90show-messagesShow log messagestmux show-messages
91select-layoutSet pane layouttmux select-layout even-horizontal
92select-layoutSet tiled layouttmux select-layout tiled
93customize-modeEnter customize modetmux customize-mode
94show-hooksShow all hookstmux show-hooks -g