REF: https://github.com/tmux/tmux/wiki/Getting-Started Cheatsheet : https://tmuxcheatsheet.com/
Help
tmux list-keys
tmux info
- C+b
: list-keys
Session
tmux new
untuk membut new sessiontmux new -s [sessionname]
dengan namatmux ls
atautmux list-session
tmux attach
atautmux attach -t [session]
pasangkan existing session
- `tmux kill-session -t [sessionname]
:kill-session
to kill current sessionC+b d
detach dari session saat ini
Kill current pane or window
- C+b & : kill the current window and all the pane
- C+b x : kill the current pane
Navigation
- C+b [ : scroll mode dan gunakan arrow, lalu
q
untuk keluar dari scoll mode
Window
- C+b c : new window
- C+b [0-9] : change to [0-9] window
- C+b ' : prompt to windows index and change to that window
- C+b n : change to next window
- C+b p : change to previous window
- C+b l : change to last window
Pane
- C+b % : split new pane horizontally (left-right)
- C+b " : split new pane vertically (top-bottom)
- C+b [up-down-left-right] : change active pane
- C+b q (wait) [N] : show number on pane, wait and change to shown number
- C+b o : move to the next pane
- C+b C-o : swap the pane
Help
man 1 tmux
manuals- C+b ? : show shortcut list
- C+b : : show command prompt, and use auto-completion
Copy Buffer Mode
C+b [
masuk ke copy buffer mode[spacebar]
untuk start selection dan[enter]
untuk copy selectionC+b ]
paste dari selection
NOTE:
vim --version | grep clip
untuk check apakah sudah terinsall clipboard lewat "+" di depannya. Jika tidak, install sudo apt install vim-gtk3