tmux好用的工具

tmux安装


sudo apt-get install tmux

tmux所有自带命令都默认需要先按Ctrl + b,然后再键入对应的命令

Ctrl+b " - split pane horizontally
Ctrl+b % - 将当前窗格垂直划分
Ctrl+b 方向键 - 在各窗格间切换
Ctrl+b,并且不要松开Ctrl,方向键 - 调整窗格大小
Ctrl+b c - (c)reate 生成一个新的窗口
Ctrl+b n - (n)ext 移动到下一个窗口
Ctrl+b p - (p)revious 移动到前一个窗口.
Ctrl+b 空格键 - 采用下一个内置布局 
Ctrl+b q - 显示分隔窗口的编号 
Ctrl+b o - 跳到下一个分隔窗口 
Ctrl+b & - 确认后退出 tmux 

设置配置文件:

进入tmux 指令环境下

vim ~/.tmux.conf 

用C+a 替代C+b

set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix

开启鼠标模式
set -g mouse on

bind ^z run "tmux-zoom"

按键D激活配置

bind D source-file ~/.tmux.conf

设置3个屏
selectp -t 0
splitw -h -p 50
selectp -t 1
splitw -v -p 50
selectp -t 0

 

 

猜你喜欢

转载自blog.csdn.net/weixin_38740463/article/details/89787351