-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
53 lines (40 loc) · 1.58 KB
/
Copy pathtmux.conf
File metadata and controls
53 lines (40 loc) · 1.58 KB
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
set -as terminal-features ",*:hyperlinks"
# 1-indexed windows/panes, and keep numbering contiguous when one is closed
set -g base-index 1
setw -g pane-base-index 1
set -g renumber-windows on
set -g mouse on
setw -g mode-keys vi
# drag ends selection but keeps it visible; no auto-copy
bind -T copy-mode-vi MouseDragEnd1Pane send -X stop-selection
# y copies selection to system clipboard and exits copy-mode
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "xclip -selection clipboard -i"
# Escape or q bails without copying
bind -T copy-mode-vi Escape send -X cancel
set -g status-position bottom
set -g window-status-separator " │ "
# default = "whatever the terminal says"
set -g status-style "bg=default,fg=default"
set -g window-status-style "bg=default,fg=default"
# current tab uses the theme's accent colors (reverse swaps fg/bg)
set -g window-status-current-style "fg=brightwhite,bg=blue,bold"
set -g window-status-format " #I: #W "
set -g window-status-current-format " #I: #W "
set -g status-left-length 50
set -g status-left "#[fg=cyan,bold] #S #[default]│ "
set -g status-right "#{=40:pane_title} │ %H:%M %d-%b-%y"
# window cycling without prefix
bind -n M-h previous-window
bind -n M-l next-window
bind -n M-Left previous-window
bind -n M-Right next-window
# jump directly to window N
bind -n M-1 select-window -t :=1
bind -n M-2 select-window -t :=2
bind -n M-3 select-window -t :=3
bind -n M-4 select-window -t :=4
bind -n M-5 select-window -t :=5
bind -n M-6 select-window -t :=6
bind -n M-7 select-window -t :=7
bind -n M-8 select-window -t :=8
bind -n M-9 select-window -t :=9