From ee2fb59fe47548de5ae8c467e7f7c0a5e1fdba3f Mon Sep 17 00:00:00 2001 From: void Date: Wed, 28 Jun 2023 21:37:40 +0300 Subject: [PATCH] tmux config --- dot_tmux.conf | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dot_tmux.conf diff --git a/dot_tmux.conf b/dot_tmux.conf new file mode 100644 index 0000000..0a2f8fa --- /dev/null +++ b/dot_tmux.conf @@ -0,0 +1,27 @@ +# interferes with terminal mouse usage +# set -g mouse-select-window on +# set -g mouse-select-pane on + +set-window-option -g xterm-keys on +set -sg escape-time 0 + +# start windows and panes at 1, not 0 +set -g base-index 1 +set -g pane-base-index 1 +set-window-option -g pane-base-index 1 +set-option -g renumber-windows on + +# prefix key +unbind C-b +set-option -g prefix C-space +bind C-space send-prefix + +# use Alt-arrow keys without prefix key to switch panes +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 + +# shift arrow to switch windows +bind -n S-Left previous-window +bind -n S-Right next-window