commit 9b389c736c63f7a8a286ee5bc41bb04ecc4fd232 (patch) parent 7f354f5a9638327c0182e0ddb675ba173fe43690 Author: Alexander Karle <akarle@umass.edu> Date: Mon, 4 Dec 2017 16:22:50 -0500 Vim style pane switching, window renumbering Diffstat:
M | tmux.conf | | | 17 | ++++++++++++----- |
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/tmux.conf b/tmux.conf @@ -17,11 +17,18 @@ set-option -ga terminal-overrides ",xterm-256color:Tc" # Default terminal is 256 colors set -g default-terminal "screen-256color" -# switch panes using Alt-arrow without prefix -bind -n M-Left select-pane -L -bind -n M-Right select-pane -R -bind -n M-Up select-pane -U -bind -n M-Down select-pane -D +# switch panes using vim keys +bind C-h select-pane -L +bind C-j select-pane -D +bind C-k select-pane -U +bind C-l select-pane -R # set mouse on for scrolling set -g mouse on + +# set window and pane numbering to start at 1 +set -g base-index 1 +set -g pane-base-index 1 + +# set windows to renumber themselves when closed +set -g renumber-windows on