tmux
1. yum install tmux
2. start
tmux attach session-name
tmux
3. exit
Ctrl+b d #detach
Ctrl+b & #close
4. split screen
Ctrl+b ” #horizonal split
Ctrl+b % #vertical split
exit #exit split window
5. support 256 color
export TERM=xterm-256color, then run tmux
add set -g default-terminal “screen-256color” in ~/.tmux.conf, then run tmux
-2
6. redine Ctrl+b
add set-option -g prefix C-a in ~/.tmux.conf
7. switch in windows
Ctrl+b [0-9]
8. switch in panels
Ctrl+b arrow key
Note:但是用于我的工作环境会设置很多环境变量和启动新的shell,在使用tmux的过程中遇到很多问题,所以不得不弃之。