linux 配置 tmux

安装

请点击这里>> here << ;

使用说明

使用手册>> here <<;

个性化配置

  • 在主目录下 打开.tmux.conf
vim .tmux.conf
  • 文件内容
# 设置前缀为Ctrl + a
set -g prefix C-a

# 解除Ctrl+b 与前缀的对应关系
unbind C-b

# 将r设置为加载配置文件
bind r source-file ~/.tmux.conf

# copy-mode 将快捷键设置为vi 模式
setw -g mode-keys vi

# 允许鼠标(开启后可以用滚轮滚动)
set-option -g mouse on

bind-key -t vi-copy MouseDragEnd1Pane copy-pipe "xclip -selection clipboard -i"
  • 使配置生效
tmux source-file ~/.tmux.conf

猜你喜欢

转载自www.cnblogs.com/coder-tcm/p/11543939.html