From faf48af3263181b56250f6f799c1c8f4cbacf971 Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 31 Oct 2019 13:00:26 +0800 Subject: [PATCH] opt tmux time --- etc/conf/tmux-2.1.conf | 3 +++ etc/conf/tmux.conf | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/etc/conf/tmux-2.1.conf b/etc/conf/tmux-2.1.conf index 40ee1ea5..c6bc2f7f 100644 --- a/etc/conf/tmux-2.1.conf +++ b/etc/conf/tmux-2.1.conf @@ -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}" + diff --git a/etc/conf/tmux.conf b/etc/conf/tmux.conf index f9c9c741..c573add8 100644 --- a/etc/conf/tmux.conf +++ b/etc/conf/tmux.conf @@ -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