From ea73a11d0009d6b7006fcca6fd24266981e8562f Mon Sep 17 00:00:00 2001 From: Sebastian Semmler <sebastian@semmler.pro> Date: Mon, 14 Nov 2016 13:18:07 +0100 Subject: [PATCH] expand tmux config --- .tmux.conf | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 3da850b..be153fa 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -1,5 +1,35 @@ -set-option -g default-shell /bin/zsh +#set-option -g default-shell /bin/zsh +set -g default-command /bin/zsh +set -g default-shell /bin/zsh + bind-key a set-window-option synchronize-panes bind-key X kill-session -set -g mouse on +# vi mode keys +set-window-option -g mode-keys vi +setw -g mode-keys vi + +# use CTRL+b instead of CTRL+a +set-option -g mouse off +set -g prefix C-a +unbind C-b +#panes start at 1, windows as well +set -sg escape-time 1 +set -g base-index 1 +setw -g pane-base-index 1 + +#movement in vim style +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +#resizing of windows in vim style +bind -r H resize-pane -L 5 +bind -r J resize-pane -D 5 +bind -r K resize-pane -U 5 +bind -r L resize-pane -R 5 + +#cycle through windows +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ -- GitLab