版本 tmux 2.1+
# Base settings
set -g default-terminal "screen-256color"
set -g display-time 3000
set -g escape-time 0
set -g history-limit 65535
set -g base-index 1
set -g pane-base-index 1
# Prefix bind
set -g prefix C-a
unbind C-b
bind C-a send-prefix
# Split window
bind - splitw -v
bind | splitw -h
# Select window
bind k select-pane -U
bind j select-pane -D
bind h select-pane -L
bind l select-pane -R
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Start mouse
set-option -g mouse on
# Copy --> vim mode
setw -g mode-keys vi
# Update config file
bind R source-file ~/.tmux.conf \; display "Reloaded!"
set -g status-bg colour235
set -g status-fg white
set-option -g status-justify centre
set-option -g status-left '#[bg=black,fg=green][#[fg=cyan]#(echo $USER)@#H#[fg=red]:#[fg=blue]#S#[fg=green]]'
set-option -g status-left-length 30
setw -g automatic-rename on
set-window-option -g window-status-format '#[dim]#I:#[default]#W#[fg=grey,dim]'
set-window-option -g window-status-current-format '#[fg=cyan,bold]#I#[fg=blue]:#[fg=cyan]#W#[fg=dim]'
set-window-option -g window-status-current-fg colour208
set -g status-right '#[fg=green][#[fg=cyan]%H:%M %Y-%m-%d#[fg=green]]'
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
# Plugin options
set -g @scroll-speed-num-lines-per-scroll 3
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'
上一篇:Zotero 使用教程
下一篇:Git 备忘录