-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
56 lines (43 loc) · 1.57 KB
/
tmux.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
set -g mouse on
set -g set-clipboard off
set-option -g focus-events on
set-option -g default-shell /opt/homebrew/bin/fish
set -g pane-base-index 1
set -g escape-time 0
setw -g mode-keys vi
set-option -g history-limit 10000
set-option -g default-terminal "alacritty"
set-option -ga terminal-overrides ",xterm-256color:Tc,alacritty:RGB"
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours
# Use Alt-arrow keys without prefix key to switch panes
bind -n M-h select-pane -L
bind -n M-l select-pane -R
bind -n M-k select-pane -U
bind -n M-j select-pane -D
bind '"' split-window -v -p 35 -c '#{pane_current_path}'
bind '%' split-window -h -p 35 -c '#{pane_current_path}'
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
bind -n C-Tab select-pane -L
bind -n C-S-Tab select-pane -R
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
bind -n C-PageUp previous-window
bind -n C-PageDown next-window
bind h resize-pane -L 30
bind l resize-pane -R 30
bind k resize-pane -U 15
bind j resize-pane -D 15
# Repeat last command in pane 2
bind r send-keys -t 2 C-c Up Enter
bind e send-keys -t 2 Up Enter
bind S choose-window 'join-pane -v -s "%%"'
bind V choose-window 'join-pane -h -s "%%"'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'egel/tmux-gruvbox'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'