1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-26 01:04:06 +08:00

opt tmux time

This commit is contained in:
shaoying 2019-10-31 13:00:26 +08:00
parent 3f20d2a21f
commit faf48af326
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,8 @@
source-file ~/.tmux.common
set -g mouse on
set -gw window-status-last-style "bg=cyan"
bind C-s copy-mode -e
bind -t vi-copy C-c copy-selection -x
bind -t vi-copy MouseDragEnd1Pane copy-selection -x
@ -13,3 +15,4 @@ bind u split-window -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind U split-window -f -c "#{pane_current_path}"
bind V split-window -f -h -c "#{pane_current_path}"

View File

@ -14,15 +14,15 @@ set -gw other-pane-width 60
set -gw other-pane-height 12
set -g set-titles on
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 set-titles-string "#(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-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 status-left "#[bg=red]\ [#H/#S]\ #[bg=yellow]\ [#{cursor_y},#{cursor_x};#{pane_height},#{pane_width}]\ "
set -g status-right "#[bg=yellow]\ [#(date '+%Y-%m-%d %H:%M:%S')]\ #[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