Tmux
Tmux config: https://github.com/waynepai/ubuntu_setup/blob/master/tmux.conf
Tmux command
List sessions
- tmux ls
Create session
- tmux
- tmux new -s {session-name}
Attach session
- tmux attach
- tmux attach -d {session-id}
Deattach seesion
- Ctrl A + D
Create new window
- Ctrl A + C
Split window
- Ctrl A + v : split vertical window
- Ctrl A + s : split horzontal window
Switch in split window
- Ctrl A + up/down/left/right
Adjust split window size
- C-a Ctrl按著 + 上下左右, 可以調整視窗大小
Alt+number to select window, put following settings in .tmux.conf
bind-key -n M-q select-window -t 0
bind-key -n M-1 select-window -t 1
bind-key -n M-2 select-window -t 2
bind-key -n M-3 select-window -t 3
bind-key -n M-4 select-window -t 4
bind-key -n M-5 select-window -t 5
bind-key -n M-6 select-window -t 6
bind-key -n M-7 select-window -t 7
bind-key -n M-8 select-window -t 8
bind-key -n M-9 select-window -t 9
bind-key -n M-0 select-window -t 10
Use Xterm 256-color
tmux -2