|
@@ -74,10 +74,6 @@ set -g message-style fg=brightyellow,bold,bg=red
|
|
|
set -g display-time 1000
|
|
set -g display-time 1000
|
|
|
# }}}
|
|
# }}}
|
|
|
|
|
|
|
|
-########## 窗口管理 ---{{{
|
|
|
|
|
-set -g detach-on-destroy off
|
|
|
|
|
-### }}}
|
|
|
|
|
-
|
|
|
|
|
########## 窗口管理 ---{{{
|
|
########## 窗口管理 ---{{{
|
|
|
#
|
|
#
|
|
|
# 窗口的索引值从 0 开始
|
|
# 窗口的索引值从 0 开始
|
|
@@ -85,6 +81,8 @@ set -g base-index 0
|
|
|
# 关闭中间的会自动重新编号
|
|
# 关闭中间的会自动重新编号
|
|
|
# set -g renumber-windows on
|
|
# set -g renumber-windows on
|
|
|
|
|
|
|
|
|
|
+set -g detach-on-destroy off
|
|
|
|
|
+
|
|
|
# 类似于 screen,用 Ctrl+C 创建窗口,故意映射两组,防止按错
|
|
# 类似于 screen,用 Ctrl+C 创建窗口,故意映射两组,防止按错
|
|
|
bind-key C-c new-window -c '#{pane_current_path}'
|
|
bind-key C-c new-window -c '#{pane_current_path}'
|
|
|
bind-key c new-window -c '#{pane_current_path}'
|
|
bind-key c new-window -c '#{pane_current_path}'
|
|
@@ -104,6 +102,24 @@ bind-key C-a last-window
|
|
|
# 显示所有窗口,以供跳转
|
|
# 显示所有窗口,以供跳转
|
|
|
unbind-key l
|
|
unbind-key l
|
|
|
bind-key l choose-window
|
|
bind-key l choose-window
|
|
|
|
|
+
|
|
|
|
|
+bind-key k if-shell 'rm tmux/secret 2>/dev/null && exit 0 || touch tmux/secret && exit 1' {
|
|
|
|
|
+setw -g window-status-format '#[fg=green]#I-#(tmux-ui WIN #{pane_title})#[default]'
|
|
|
|
|
+} {
|
|
|
|
|
+# 但如果是隐私模式则只显示星号
|
|
|
|
|
+setw -g window-status-format '#[fg=green]#I-****#[default]'
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+bind-key K if-shell 'rm tmux/secret 2>/dev/null && exit 0 || touch tmux/secret && exit 1' {
|
|
|
|
|
+setw -g window-status-format '#[fg=green]#I-#(tmux-ui WIN #{pane_title})#[default]'
|
|
|
|
|
+setw -g window-status-current-format '#[fg=brightyellow]#I-#(tmux-ui WIN #{pane_title})#[default]'
|
|
|
|
|
+set -g pane-border-format '#(tmux-ui PANE #{pane_title} #{pane_active} #{pane_width})'
|
|
|
|
|
+} {
|
|
|
|
|
+# 但如果是隐私模式则只显示星号
|
|
|
|
|
+setw -g window-status-format '#[fg=green]#I-****#[default]'
|
|
|
|
|
+setw -g window-status-current-format '#[fg=brightyellow]#I-****#[default]'
|
|
|
|
|
+set -g pane-border-format ''
|
|
|
|
|
+}
|
|
|
# }}}
|
|
# }}}
|
|
|
|
|
|
|
|
########## 面板管理 ---{{{
|
|
########## 面板管理 ---{{{
|