tmux
session
window
pane
C for Ctrl
Misc
- kill tmux all session
- $ tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}'| xargs -l tmux kill-session -t
- C + z
- toggle pane zoom
- C-b :
- prompt
Choose session, window, pane
session
- C-b s
- choose a session from a list
window
- C-b w
- choose a window from a list
- C-b f
- find window
pane
None
Kill session, window, pane
session
$ tmux kill-session -t <session-name>
window
- C-b &
- kill window
pane
- C-b x
- kill the current pane
C-b :kill-pane
Rename session, window
session
- C-b $
- rename the current Session
window
- C-b ,
- rename the current window
- C-b :renamew
- rename the current window
Window
- C-數字
- 切換到 第 n 個 window
- C-b :joinp -s <window編號>.<pane編號>
- 把別的 window 的 pane 拉過來
Pane
- C-b C-o, C-b M-o
- rotating the window up / down
- C-b !
- break pane, move the current pane into a new seperate window
- C-b :move-pane -t 3.2
- split window 3's pane 2 and move the current pane there
- swap -s 0 -t 1
交換 pan0 與 pane1 的位置
- C-b {, C-b }
- moving the current pane to the previous / next position
$ tmux select-pane -[UDLR] ( C-b { or C-b })
Help
>>> tmux list-keys
>>> tmux list-commands
>>> tmux info
>>> tmux source-file ~/.tmux.conf
Fun
- C-b t
- big clock