Config
$ git clone git@github.com:shfshanyue/tmux-config.git
$ cp tmux-config/.tmux.conf ~/.tmux.conf
Screencast
Animation
Attach
$ tmux new -s shanyue # 新建session
<prefix> + d # detach client
$ tmux a -t shanyue # attach
Split
<prefix> + % # 水平分屏
<prefix> + " # 垂直分屏
Multi Window
<prefix> + c # 新建窗口
Find Window
<prefix> + f # 根据关键字查找
<prefix> + 4 # 切换到第四个窗口
<prefix> + a # 切换到最近的窗口
Next Layout
<prefix> + space
Maximise
<prefix> + z
Copy Mode
<prefix> + [
[Vim Goto Command] # 任意 vim 跳转命令
Mouse Mode
$ tmux set mouse on # 通过鼠标滚动屏幕,切换窗口