From d902a70eda966a1b171de4b4240fb0ebf34c90cb Mon Sep 17 00:00:00 2001 From: shaoying Date: Thu, 31 Oct 2019 05:31:12 +0800 Subject: [PATCH] opt tmux.conf --- etc/conf/tmux-2.1.conf | 3 +-- etc/conf/tmux.conf | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/etc/conf/tmux-2.1.conf b/etc/conf/tmux-2.1.conf index 658a957b..40ee1ea5 100644 --- a/etc/conf/tmux-2.1.conf +++ b/etc/conf/tmux-2.1.conf @@ -3,6 +3,7 @@ source-file ~/.tmux.common set -g mouse on bind C-s copy-mode -e bind -t vi-copy C-c copy-selection -x +bind -t vi-copy MouseDragEnd1Pane copy-selection -x bind C-m display-panes "swap-pane -t %%" bind C-u display-panes "move-pane -v -t %%" @@ -12,5 +13,3 @@ 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}" - -set status-right "#(date) #(hostname)" diff --git a/etc/conf/tmux.conf b/etc/conf/tmux.conf index 1218f7e2..6e50ca13 100644 --- a/etc/conf/tmux.conf +++ b/etc/conf/tmux.conf @@ -2,15 +2,14 @@ set -g prefix C-s set -g base-index 1 -set -g allow-rename off +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 mode-keys vi set -g history-limit 1000 -setw -g pane-base-index 1 +set -g mode-keys vi # }}} # 会话管理{{{ bind s choose-tree -u