From 3a439a43d75eb6361fb0a5aaf1dc2dfadf4d2c13 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 14 Apr 2017 01:37:53 +0300 Subject: [PATCH] .tmux.conf: add select-window bindings --- .tmux.conf | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index fe4827c..9d13711 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -56,6 +56,16 @@ set-option -g status-right '' # Increase scrollback lines set-option -g history-limit 1000 +# Set the command prefix to match GNU screen (CTRL+a) +# set-option -g prefix C-a +# +# Use C-a C-a key to send prefix instead of the default +# unbind-key C-b +# bind-key C-a send-prefix +# +# C-a for last-window +# bind-key C-a last-window + # R to reload config without restart bind-key R source-file ~/.tmux.conf \; display "Reloaded!" @@ -70,15 +80,8 @@ bind J resize-pane -D 10 bind K resize-pane -U 10 bind L resize-pane -R 10 -# Set the command prefix to match GNU screen (CTRL+a) -# set-option -g prefix C-a -# -# Use C-a C-a key to send prefix instead of the default -# unbind-key C-b -# bind-key C-a send-prefix -# -# C-a for last-window -# bind-key C-a last-window +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ # Use vertical and horizontal chars to split the screen bind-key | split-window -h -- 2.39.5