set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'fcsonline/tmux-thumbs' set -g @plugin 'schasse/tmux-jump' set -g @plugin 'dracula/tmux'
if '[ -f ~/dotfiles/tmux/bindings.tmux ]' 'source ~/dotfiles/tmux/bindings.tmux'
# 主题配置 set -g @dracula-show-battery false set -g @dracula-show-network false set -g @dracula-show-weather false set -g @dracula-show-timezone false set -g @dracula-military-time true set -g @dracula-border-contrast true set -g @dracula-cpu-usage true set -g @dracula-ram-usage tr
set -g base-index 1 # start windows numbering at 1 setw -g pane-base-index 1 # make pane numbering consistent with windows
setw -g automatic-rename on # rename window to reflect current program set -g renumber-windows on # renumber windows when a window is closed
set -g set-titles on # set terminal title
# fix the window name set-option -g allow-rename off
set -g display-panes-time 800 # slightly longer pane indicators display time set -g display-time 1000 # slightly longer status messages display time set -g status-interval 10 # redraw status line every 10 seconds
# clear both screen and history bind -n C-l send-keys C-l \; run 'sleep 0.1' \; clear-history
# activity set -g monitor-activity on set -g visual-activity off
# pane navigation bind -r h select-pane -L # move left bind -r j select-pane -D # move down bind -r k select-pane -U # move up bind -r l select-pane -R # move right bind -r > swap-pane -D # swap current pane with the next one bind -r < swap-pane -U # swap current pane with the previous one
# pane resizing bind -r H resize-pane -L 2 bind -r J resize-pane -D 2 bind -r K resize-pane -U 2 bind -r L resize-pane -R 2
# window navigation unbind n unbind p bind -r C-h previous-window # select previous window bind -r C-l next-window # select next window bind Tab last-window # move to last active window
# kill pane bind -r W kill-pane bind C-w kill-pane
bind b list-buffers # list paste buffers bind p paste-buffer # paste from the top paste buffer bind P choose-buffer # choose which buffer to paste from
# -- mouse mode ---------------------------------------------------------------- set -g mouse on
# Toggle mouse on bind-key M \ set-option -g mouse on \;\ display-message 'Mouse: ON'
# Toggle mouse off bind-key m \ set-option -g mouse off \;\ display-message 'Mouse: OFF'