From fb2a00672aea82ce9a0f849ac2185b3ca8c53cd1 Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 31 Oct 2019 11:25:22 +0800 Subject: [PATCH] opt tmux status --- etc/conf/tmux.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/etc/conf/tmux.conf b/etc/conf/tmux.conf index 6e50ca13..c7946fe6 100644 --- a/etc/conf/tmux.conf +++ b/etc/conf/tmux.conf @@ -1,15 +1,26 @@ # 配置管理{{{ set -g prefix C-s +set -g history-file ~/.tmuxinfo set -g base-index 1 set -g pane-base-index 1 set -g renumber-windows on -set -g allow-rename off set -g display-time 5000 set -g display-panes-time 5000 set -g history-limit 1000 set -g mode-keys vi + +set -g allow-rename off +set -g set-titles on +set -g set-titles-string "#(whoami)@#(hostname)/#{session_name}:#{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 + # }}} # 会话管理{{{ bind s choose-tree -u