|
|
|
@ -27,8 +27,6 @@ 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 status-interval 10 # redraw status line every 10 seconds |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# activity |
|
|
|
|
set -g monitor-activity on |
|
|
|
@ -59,7 +57,8 @@ bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
|
unbind '"' |
|
|
|
|
unbind % |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bind-key -Tcopy-mode-vi 'v' send -X begin-selection |
|
|
|
|
bind-key -Tcopy-mode-vi 'y' send -X copy-selection |
|
|
|
|
|
|
|
|
|
# Smart pane switching with awareness of Vim splits. |
|
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator |
|
|
|
@ -83,6 +82,10 @@ bind-key -T copy-mode-vi C-l select-pane -R
|
|
|
|
|
set -g status-fg white |
|
|
|
|
set -g status-bg colour234 # 底部状态背景 |
|
|
|
|
|
|
|
|
|
set -g status-interval 10 # redraw status line every 10 seconds |
|
|
|
|
# 对齐方式 |
|
|
|
|
set-option -g status-justify centre |
|
|
|
|
|
|
|
|
|
# fiddle with colors of inactive windows |
|
|
|
|
setw -g window-status-fg cyan |
|
|
|
|
setw -g window-status-bg colour234 |
|
|
|
@ -104,6 +107,10 @@ set -g message-fg white
|
|
|
|
|
set -g message-bg colour22 |
|
|
|
|
set -g message-attr bright |
|
|
|
|
|
|
|
|
|
set -g status-right '#[fg=colour233,bg=colour241,bold] %d/%m #[fg=colour233,bg=colour245,bold] %H:%M:%S ' |
|
|
|
|
set -g status-right-length 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# automatic install tpm |
|
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \ |
|
|
|
|
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'" |
|
|
|
|