]> git.rmz.io Git - dotfiles.git/blob - tmux/tmux.conf
zsh/motd: ellide long failed units
[dotfiles.git] / tmux / tmux.conf
1 set -g default-terminal "tmux-256color"
2 # enable true color for kitty
3 set -ag terminal-overrides ",xterm-kitty:Tc"
4 set -g set-titles on
5
6 set -g mouse
7 set -g mode-keys vi
8
9 bind-key Escape copy-mode
10 unbind-key p
11 bind-key p paste-buffer
12 bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
13 bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
14 bind-key -T copy-mode-vi 'Space' send-keys -X halfpage-down
15 bind-key -T copy-mode-vi 'Bspace' send-keys -X halfpage-up
16
17 # easy-to-remember split pane commands
18 bind-key | split-window -h
19 bind-key - split-window -v
20 unbind-key '"'
21 unbind-key %
22
23 # moving between panes with vim movement keys
24 bind-key h select-pane -L
25 bind-key j select-pane -D
26 bind-key k select-pane -U
27 bind-key l select-pane -R
28
29 # moving between windows with vim movement keys
30 bind-key -r C-h select-window -t :-
31 bind-key -r C-l select-window -t :+
32
33 # resize panes with vim movement keys
34 bind-key -r H resize-pane -L 5
35 bind-key -r J resize-pane -D 5
36 bind-key -r K resize-pane -U 5
37 bind-key -r L resize-pane -R 5
38
39 #TODO use THEME env somehow, see FORMATS in tmux(1)
40 set -g @plugin "arcticicestudio/nord-tmux"
41 run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm'