diff --git a/dotfiles/shell/dot-tmux.conf b/dotfiles/shell/dot-tmux.conf new file mode 100644 index 0000000..2f375fa --- /dev/null +++ b/dotfiles/shell/dot-tmux.conf @@ -0,0 +1,37 @@ +## remap prefix from 'C-b' to 'C-a' +#unbind C-b +#set-option -g prefix C-y +#bind-key C-b send-prefix + +## split panes using h and v +unbind '"' +unbind % +bind h split-window -h +bind v split-window -v + +# Start windows and panes at 1, not 0 +set -g base-index 1 +setw -g pane-base-index 1 + +## switch panes using vim keys +bind h select-pane -L +bind j select-pane -D +bind k select-pane -U +bind l select-pane -R + +bind Left select-pane -L +bind Right select-pane -R +bind Up select-pane -U +bind Down select-pane -D + +## Enable mouse control (clickable windows, panes, resizable panes) +set -g mouse on + +## Enter copy mode with Enter and use vi mode +bind Enter copy-mode +bind -T copy-mode-vi v send -X begin-selection +bind -T copy-mode-vi C-v send -X rectangle-toggle +bind -T copy-mode-vi y send -X copy-selection-and-cancel +bind -T copy-mode-vi Escape send -X cancel +bind -T copy-mode-vi H send -X start-of-line +bind -T copy-mode-vi L send -X end-of-line