linux configuration tmux

installation

Click here >> here Wallpaper <<;

Instructions for use

User's Manual >> here Wallpaper <<;

Customized configuration

  • Open .tmux.conf in your home directory
vim .tmux.conf
  • document content
# 设置前缀为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"
  • Validate the configuration
tmux source-file ~/.tmux.conf

Guess you like

Origin www.cnblogs.com/coder-tcm/p/11543939.html