Skip to content

Instantly share code, notes, and snippets.

@alvin2ye
Created July 24, 2021 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alvin2ye/e227698109e8252e81c125e8b625d1d9 to your computer and use it in GitHub Desktop.
Save alvin2ye/e227698109e8252e81c125e8b625d1d9 to your computer and use it in GitHub Desktop.
.tmux.conf
# 改为 vim 模式
setw -g mode-keys vi
bind-key -t vi-copy v begin-selection
# 设置window的起始下标为1
set -g base-index 1
# 设置pane的起始下标为1
set -g pane-base-index 1
#-- base --#
set -g default-terminal "screen-256color"
set -g display-time 3000
set -g history-limit 65535
# 鼠标支持
# set-option -g mouse on
# 关闭默认窗口标题
set -g set-titles off
#-- statusbar --#
set -g status-right-attr bright
set -g status-bg black
set -g status-fg yellow
# 设置状态栏高亮
setw -g window-status-current-attr bright
# 设置状态栏红底白字
setw -g window-status-current-bg red
setw -g window-status-current-fg white
# 设置状态栏列表左对齐
set -g status-justify left
# 非当前window有内容更新时在状态栏通知
setw -g monitor-activity on
set -g status-interval 1
#set -g visual-activity on
# 关闭自动标题
setw -g automatic-rename off
setw -g allow-rename off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment