-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtmux.conf
49 lines (35 loc) · 1.27 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
# write to xterm title via escape codes
set -g set-titles on
# pane_title captures the xterm escape sent by the shell; rest is noise
set -g set-titles-string "#{pane_title}"
# host/root colour, 19 is selection background
set -g status-style bg="${HL_NAME}",fg=black
if-shell -b '[ "${COLORTERM}" = "truecolor" ]' {
set -g status-style fg="bright${HL_NAME}",bg=color19
}
# just the title, the rest is truncated noise
set -g status-format "#{pane_title}"
set -g status-position top
# moar scollback
set -g history-limit 100000
# assume everything can handle 256color; linux falls back gracefully
set -g default-terminal "tmux-256color"
# 24 bit color capability is not detected from alacritty
set -g -a terminal-overrides "alacritty:RGB"
# search
set-window-option -g wrap-search off
# use screen ctrl-A prefix
unbind-key C-b
set -g prefix C-a
# enter copy mode
bind-key a copy-mode
# vi copypasta mode
set-window-option -g mode-keys vi
# scrollback
bind-key \' send-keys -R C-l \; clear-history
# more vim like selection
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi Y send-keys -X copy-pipe-end-of-line
# yank missing for some reason
bind-key -T copy-mode-vi y "send-keys -X copy-selection"
bind-key -T copy-mode-vi Y "send-keys -X copy-end-of-line"