stuff
1setw -g mode-keys vi
2
3unbind C-b
4set-option -g prefix C-a
5bind-key C-a send-prefix
6
7set -g mouse on
8
9bind v split-window -v
10bind b split-window -h
11
12bind i resize-pane -U
13bind y resize-pane -L
14bind u resize-pane -D
15bind o resize-pane -R
16
17unbind h
18bind h select-pane -L
19unbind j
20bind j select-pane -D
21unbind k
22bind k select-pane -U
23unbind l
24bind l select-pane -R
25
26# prevent accidental v split
27# unbind c
28
29set-option -sg escape-time 10
30set-option -g default-terminal "screen-256color"
31set-option -sa terminal-overrides ',xterm-256color:RGB'
32
33set -g history-limit 262144
34
35# set -g status on
36# set -g status-left ""
37set -g status-right ""
38# set -g status-bg '#aa8698'
39# set -g status-justify centre
40# set -g window-status-current-format "#[fg=yellow]#W"
41# set -g window-status-format "#[fg=yellow]#W"
42
43set -g status-interval 60 # default is 15
44
45bind-key -T root WheelUpPane \
46 if-shell -Ft= '#{?pane_in_mode,1,#{mouse_any_flag}}' \
47 'send -Mt=' \
48 'if-shell -Ft= "#{alternate_on}" "send -t= Up" "copy-mode -et="'
49bind-key -T root WheelDownPane \
50 if-shell -Ft = '#{?pane_in_mode,1,#{mouse_any_flag}}' \
51 'send -Mt=' \
52 'if-shell -Ft= "#{alternate_on}" "send -t= Down" "send -Mt="'
53
54# https://github.com/tmux-plugins/tmux-resurrect
55run-shell ~/tmux-plugins/tmux-resurrect/resurrect.tmux
56set -g @resurrect-strategy-nvim 'session'
57