保存一份tmux常用配置:
set-option -g allow-rename off
set-window-option -g mode-keys vi
setw -g mode-keys vi
bind -t vi-copy Escape cancel
bind y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
bind r source-file ~/.tmux.conf \; display "配置文件已成功加载完毕!"
bind | split-window -h
bind - split-window -v
set -g status-fg white
set -g status-bg black
setw -g window-status-fg magenta
setw -g window-status-bg default
setw -g window-status-attr dim
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
set -g pane-border-fg green
set -g pane-border-bg yellow
set -g pane-active-border-fg white
set -g pane-active-border-bg cyan
set -g message-fg white
set -g message-bg black
set -g message-attr bright
set -g status-left-length 36
set -g status-left "#[fg-White] Session: #S #[fg=cyan]#P"
set -g status-interval 60
set -g status-justify centre
setw -g monitor-activity on
set -g visual-activity on
setw -g mouse-resize-pane on
setw -g mouse-select-pane on
setw -g mouse-select-window on
setw -g mode-mouse on