diff --git a/etc/conf/tmux-1.8.conf b/etc/conf/tmux-1.8.conf index 9b2bb1ad..437260fa 100644 --- a/etc/conf/tmux-1.8.conf +++ b/etc/conf/tmux-1.8.conf @@ -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 %%" diff --git a/etc/conf/tmux.conf b/etc/conf/tmux.conf index c7946fe6..f9c9c741 100644 --- a/etc/conf/tmux.conf +++ b/etc/conf/tmux.conf @@ -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 %%"