Files
dotcommon/tmux.conf

35 lines
831 B
Bash

set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind -n M-a run-shell ~/dotfiles/tmux-capture.sh
set -g default-terminal "tmux-256color"
set -g mouse
set -g history-limit 5000000
set -g focus-events on
set -sg escape-time 200
set -sa terminal-features ',xterm-256color:RGB'
# Make the first window 1, not 0
set -g base-index 1
set -g renumber-windows on
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R