mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 16:58:06 +08:00
opt tmux color
This commit is contained in:
parent
fb2a00672a
commit
3f20d2a21f
@ -6,6 +6,8 @@ set -g mouse-resize-pane on
|
||||
set -g mouse-utf8 on
|
||||
set -g mode-mouse on
|
||||
|
||||
set -gw window-status-last-bg "cyan"
|
||||
|
||||
bind C-m command-prompt -p "move to:" "swap-pane -s . -t %%"
|
||||
bind C-u command-prompt -p "move to:" "move-pane -v -t %%"
|
||||
bind C-v command-prompt -p "move to:" "move-pane -h -t %%"
|
||||
|
@ -1,6 +1,5 @@
|
||||
# 配置管理{{{
|
||||
set -g prefix C-s
|
||||
set -g history-file ~/.tmuxinfo
|
||||
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
@ -11,15 +10,21 @@ set -g display-panes-time 5000
|
||||
set -g history-limit 1000
|
||||
set -g mode-keys vi
|
||||
|
||||
set -g allow-rename off
|
||||
set -gw other-pane-width 60
|
||||
set -gw other-pane-height 12
|
||||
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "#(whoami)@#(hostname)/#{session_name}:#{pane_current_command}"
|
||||
set -g set-titles-string "[#(date '+%Y-%m-%d %H:%M:%S')][#(whoami)@#(hostname)/#{session_name}:#{window_name}.#{pane_index} #{pane_current_command}]"
|
||||
|
||||
set -g status-interval 1
|
||||
set -g status-left-length 200
|
||||
set -g status-left "#[bg=red][#H/#S:#{pane_current_command}]"
|
||||
set -g status-right "#[bg=red][#{cursor_y},#{cursor_x}]#{pane_current_path}[#(date '+%Y-%m-%d %H:%M:%S')]"
|
||||
set -g status-right-length 200
|
||||
set -g status-left "#[bg=red][#H/#S]#[bg=yellow][#(date '+%Y-%m-%d %H:%M:%S')]"
|
||||
set -g status-right "#[bg=yellow][#{cursor_y},#{cursor_x};#{pane_height},#{pane_width}]#[bg=red][#{pane_current_path}]"
|
||||
set -gw window-status-current-format "#[bg=magenta][#I:#W.#{pane_index}#F#{?pane_in_mode,COPY,} #{pane_current_command}]"
|
||||
set -gw window-status-format "#[fg=blue][#I:#W.#{pane_index}#F]"
|
||||
set -g allow-rename off
|
||||
|
||||
|
||||
# }}}
|
||||
# 会话管理{{{
|
||||
@ -51,6 +56,9 @@ bind l select-pane -R
|
||||
bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
|
||||
bind C-g select-layou tiled
|
||||
bind C-y select-layou main-vertical
|
||||
bind C-t select-layou main-horizontal
|
||||
bind C-h command-prompt -p "size:" "resize-pane -L %%"
|
||||
bind C-l command-prompt -p "size:" "resize-pane -R %%"
|
||||
bind C-j command-prompt -p "size:" "resize-pane -D %%"
|
||||
|
Loading…
x
Reference in New Issue
Block a user