]> git.rmz.io Git - dotfiles.git/blob - tmux/tmux.conf
7bf58fd67eef7a11404bc68b271c112115ee014c
[dotfiles.git] / tmux / tmux.conf
1 set -g allow-passthrough on
2 # enable true color
3 set -ag terminal-overrides ",xterm-256color:Tc"
4 set -g set-titles on
5
6 set -g mouse
7 set -g mode-keys vi
8
9 # Reduce time to consider Esc+<key> as <Alt+key>
10 set -sg escape-time 10
11 set -sg extended-keys always
12
13 # Start windows and panes at 1, not 0
14 set -g base-index 1
15 setw -g pane-base-index 1
16 bind-key 0 select-window -t 10
17
18 bind-key Escape copy-mode
19 unbind-key p
20 bind-key p paste-buffer
21 bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
22 bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
23 bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down
24 bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up
25
26 # easy-to-remember split pane commands
27 bind-key | split-window -h
28 bind-key - split-window -v
29 unbind-key '"'
30 unbind-key %
31
32 # moving between panes with vim movement keys
33 bind-key h select-pane -L
34 bind-key j select-pane -D
35 bind-key k select-pane -U
36 bind-key l select-pane -R
37
38 # moving between windows with vim movement keys
39 bind-key -r C-h select-window -t :-
40 bind-key -r C-l select-window -t :+
41 bind-key r move-window -r # reorder windows
42
43 # resize panes with vim movement keys
44 bind-key -r H resize-pane -L 5
45 bind-key -r J resize-pane -D 5
46 bind-key -r K resize-pane -U 5
47 bind-key -r L resize-pane -R 5
48
49 #TODO use THEME env somehow, see FORMATS in tmux(1)
50 set -g @plugin "arcticicestudio/nord-tmux"
51 run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm'