Skip to content

Instantly share code, notes, and snippets.

@lazydao
Last active April 24, 2024 05:48
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 lazydao/c6dc7f7e642a5402057af2cf032d3009 to your computer and use it in GitHub Desktop.
Save lazydao/c6dc7f7e642a5402057af2cf032d3009 to your computer and use it in GitHub Desktop.
tmux配置
# 支持显示特殊字符
# set -g default-terminal "xterm-256color" # 有些情况需要改用这个配置,一般情况下用下面两条
set -g default-terminal "tmux-256color"
set -ga terminal-overrides ",xterm-256color:Tc"
set -g base-index 1 # 窗口编号从 1 开始计数
set -g display-panes-time 10000 # PREFIX-Q 显示编号的驻留时长,单位 ms
set -g mouse on # 开启鼠标
set -g pane-base-index 1 # 窗格编号从 1 开始计数
set -g renumber-windows on # 关掉某个窗口后,编号重排
set -g default-command /bin/bash # 默认sheel设为bash
set -g focus-events on # report focus events
setw -g mode-keys vi # 进入复制模式的时候使用 vi 键位(默认是 EMACS)
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
# 需要先手动执行:git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
run '~/.tmux/plugins/tpm/tpm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment