linux 配置 tmux

安裝

請點擊這裏>> here << ;git

使用說明

使用手冊>> here <<;github

個性化配置

  • 在主目錄下 打開.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
相關文章
相關標籤/搜索