|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
# https://github.com/gpakosz/.tmux |
|
|
|
# ---- general ---------------------------------------------------- |
|
|
|
# ---- general ---------------------------------------------------- |
|
|
|
set -g default-terminal "screen-256color" # colors! |
|
|
|
set -g default-terminal "screen-256color" # colors! |
|
|
|
setw -g xterm-keys on |
|
|
|
setw -g xterm-keys on |
|
|
@ -8,12 +9,15 @@ set -s focus-events on |
|
|
|
#unbind ^b # unbind defaul prefix Control+b |
|
|
|
#unbind ^b # unbind defaul prefix Control+b |
|
|
|
#set -g prefix 'C-\' # bind new prefix Control+a |
|
|
|
#set -g prefix 'C-\' # bind new prefix Control+a |
|
|
|
#bind-key 'C-\' send-prefix |
|
|
|
#bind-key 'C-\' send-prefix |
|
|
|
#set -g prefix2 C-a |
|
|
|
set -g prefix2 C-a |
|
|
|
#bind C-a send-prefix -2 |
|
|
|
bind C-a send-prefix -2 |
|
|
|
|
|
|
|
|
|
|
|
set -q -g status-utf8 on |
|
|
|
set -q -g status-utf8 on |
|
|
|
setw -q -g utf8 on |
|
|
|
setw -q -g utf8 on |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# edit configuration |
|
|
|
|
|
|
|
bind e new-window -n '~/.tmux.conf.local' "sh -c '\${EDITOR:-vim} ~/.tmux.conf.local && tmux source ~/.tmux.conf && tmux display \"~/.tmux.conf sourced\"'" |
|
|
|
|
|
|
|
|
|
|
|
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded" # create new short cut to reload tmux.conf |
|
|
|
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded" # create new short cut to reload tmux.conf |
|
|
|
|
|
|
|
|
|
|
|
set -g history-limit 5000 # boost history |
|
|
|
set -g history-limit 5000 # boost history |
|
|
@ -31,6 +35,12 @@ 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 renumber-windows on # renumber windows when a window is closed |
|
|
|
|
|
|
|
|
|
|
|
set -g set-titles on |
|
|
|
set -g set-titles on |
|
|
|
|
|
|
|
set -g set-titles-string '#h ❐ #S ● #I #W' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
|
|
# 监视窗口信息,如有内容变动,进行提示 |
|
|
|
# 监视窗口信息,如有内容变动,进行提示 |
|
|
|
set -g monitor-activity on |
|
|
|
set -g monitor-activity on |
|
|
@ -137,6 +147,8 @@ setw -g window-status-fg cyan |
|
|
|
setw -g window-status-bg colour234 |
|
|
|
setw -g window-status-bg colour234 |
|
|
|
setw -g window-status-attr dim |
|
|
|
setw -g window-status-attr dim |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# user defined |
|
|
|
|
|
|
|
if '[ -f ~/.tmux.conf.local ]' 'source ~/.tmux.conf.local' |
|
|
|
|
|
|
|
|
|
|
|
# automatic install tpm |
|
|
|
# automatic install tpm |
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \ |
|
|
|
if "test ! -d ~/.tmux/plugins/tpm" \ |
|
|
|