1 Star 1 Fork 0

Kuangcp/Configs

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tmux.conf 2.38 KB
一键复制 编辑 原始数据 按行查看 历史
Kuangcp 提交于 2026-04-17 11:50 +08:00 .
# prefix
unbind C-b
set -g prefix c-a
bind c-a send-prefix
# History
set -g history-limit 5000
bind-key -T root F5 send-keys 'ao' Enter
bind-key -T root F2 send-keys 'glo.line.day && echo '' && glo.day && echo '' && glo.line && echo '' && glo.month ' Enter
# bind reload key
bind-key r source-file ~/.tmux.conf \; display-message "Config reloaded!"
# hjkl pane traversal
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Use Alt-arrow keys to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind -n M-v split-window -h
bind -n M-b split-window -v
bind -n M-z resize-pane -Z
# Alt+数字 直接切 session
bind -n M-0 switch-client -t me
bind -n M-9 switch-client -t work
# Set easier window split keys
bind-key v split-window -h
bind-key b split-window -v
set -g cursor-style underline
# Mouse mode
set -g mouse on
setw -g mode-keys vi
# don't rename windows automatically
set-option -g allow-rename off
# color
set -g default-terminal "screen-256color"
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-option -g status-position top
set-option -g repeat-time 0
# Removes ESC delay
set -sg escape-time 0
# List of plugins
set -g @tpm_plugins ' \
caiogondim/maglev \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-pain-control \
tmux-plugins/tmux-copycat \
tmux-plugins/tmux-yank \
tmux-plugins/tmux-open \
tmux-plugins/tmux-prefix-highlight \
'
# tmux-resurrect
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-save-interval '6000'
set -g @continuum-restore 'on'
set -g @resurrect-save-bash-history 'on'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-vim 'session'
set-option -g default-command '/usr/bin/zsh'
# 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)
run '~/.tmux/plugins/tpm/tpm'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/gin9/Configs.git
git@gitee.com:gin9/Configs.git
gin9
Configs
Configs
master

搜索帮助