|
|
|
@ -8,12 +8,14 @@ set -s focus-events on
|
|
|
|
|
#unbind ^b # unbind defaul prefix Control+b |
|
|
|
|
#set -g prefix 'C-\' # bind new prefix Control+a |
|
|
|
|
#bind-key 'C-\' send-prefix |
|
|
|
|
|
|
|
|
|
bind r source-file ~/.tmux.conf \; display-message "tmux config reloaded" # create new short cut to reload tmux.conf |
|
|
|
|
set -g prefix2 C-a |
|
|
|
|
bind C-a send-prefix -2 |
|
|
|
|
|
|
|
|
|
set -q -g status-utf8 on |
|
|
|
|
setw -q -g utf8 on |
|
|
|
|
|
|
|
|
|
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 |
|
|
|
|
|
|
|
|
|
# ---- display ------------------------------------------------------------------------ |
|
|
|
@ -28,19 +30,19 @@ 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 -g monitor-activity on |
|
|
|
|
set -g visual-activity off |
|
|
|
|
|
|
|
|
|
# 调节窗口大小快捷键 |
|
|
|
|
# bind -r 表示可以重复 |
|
|
|
|
bind -r H resize-pane -L 5 |
|
|
|
|
bind -r J resize-pane -D 5 |
|
|
|
|
bind -r K resize-pane -U 5 |
|
|
|
|
bind -r L resize-pane -R 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# move between panels using hjkl like in vim up |
|
|
|
|
#bind-key k select-pane -U |
|
|
|
|
#down |
|
|
|
@ -59,8 +61,10 @@ bind -r L resize-pane -R 5
|
|
|
|
|
# bind -n M-Down select-pane -D |
|
|
|
|
|
|
|
|
|
# split panes using | and - |
|
|
|
|
bind \ split-window -h -c "#{pane_current_path}" |
|
|
|
|
bind | split-window -h -c "#{pane_current_path}" |
|
|
|
|
bind - split-window -v -c "#{pane_current_path}" |
|
|
|
|
bind _ split-window -v -c "#{pane_current_path}" |
|
|
|
|
unbind '"' |
|
|
|
|
unbind % |
|
|
|
|
|
|
|
|
|