owenrusk.dev

dotfiles

shell, editor, ssh.

git clone https://owenrusk.dev/dotfiles.git

dotfiles / tmux/tmux.conf -rw-r--r-- · 975 bytes

 1 # prefix on ctrl-a. ctrl-b is too far.
 2 set -g prefix C-a
 3 unbind C-b
 4 bind C-a send-prefix
 5 
 6 set -g mouse on
 7 set -g base-index 1
 8 setw -g pane-base-index 1
 9 set -g renumber-windows on
10 set -g history-limit 50000
11 set -g default-terminal "tmux-256color"
12 set -as terminal-features ",xterm-256color:RGB"
13 setw -g mode-keys vi
14 set -sg escape-time 10   # neovim waits on esc otherwise
15 set -g focus-events on
16 
17 set -g status-style "bg=default,fg=colour244"
18 set -g status-left "#S  "
19 set -g status-left-length 30
20 set -g status-right "%a %H:%M"
21 setw -g window-status-current-style "fg=colour255,bold"
22 
23 bind r source-file ~/.tmux.conf \; display "reloaded"
24 bind | split-window -h -c "#{pane_current_path}"
25 bind - split-window -v -c "#{pane_current_path}"
26 bind c new-window -c "#{pane_current_path}"
27 
28 bind h select-pane -L
29 bind j select-pane -D
30 bind k select-pane -U
31 bind l select-pane -R
32 
33 bind -T copy-mode-vi v send -X begin-selection
34 bind -T copy-mode-vi y send -X copy-pipe-and-cancel clip