Tmux 配置
本文最后更新于:2024年3月18日 凌晨
Tmux 配置
加载配置文件
1
| tmux source-file ~/.tmux.conf
|
鼠标配置
Tmux
默认不支持鼠标滚动查看窗口中的前后内容,需要修改配置文件~/.tmux.conf
来支持。
1 2 3 4 5 6 7 8 9 10
| setw -g mouse set-option -g history-limit 20000 set-option -g mouse on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M bind -n WheelDownPane select-pane -t= \; send-keys -M
set -g prefix C-b unbind C-a bind C-b send-prefix
|
快捷键配置
- 修改配置文件
~/.tmux.conf
,默认的前缀快捷键 ⌃b (Ctrl + b )修改为 ⌃a ( Ctrl + a)
1 2 3 4
| # Change the prefix key to C-a set -g prefix C-a unbind C-b bind C-a send-prefix
|