安装:sudo apt install tmux
使用tmux:在终端下输入tmux即进入,按下ctrl+b后 进行快捷键操作(例如:新开分屏,切换分屏等,具体可百度)
在使用的过程中,发现tmux鼠标不可滚动窗口,此时加入鼠标对窗口的控制(tmux2.1版本之后,zsh-shell):
新建.tmux.conf(vim ~/.tmux.conf),然后输入以下命令,保存退出:
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
#Enable oh my zsh in tmux
set -g default-command /bin/zsh
然后在tmux模式下,按ctrl+b,再按冒号,进入tmux命令编辑模式,输入source ~/.tmux.conf,回车,大功告成!
支持:鼠标滚动窗口,鼠标选取窗口,鼠标拖动边线改变窗口大小,NICE!