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