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