-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux.conf
More file actions
56 lines (41 loc) · 1.33 KB
/
Copy pathtmux.conf
File metadata and controls
56 lines (41 loc) · 1.33 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
54
55
56
# Terminal: real tmux terminfo + true-color passthrough
set -g default-terminal "tmux-256color"
set -as terminal-overrides ",*:Tc"
set-option -gw xterm-keys on
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
set-option -g prefix C-a
unbind-key C-b
bind-key C-a send-prefix
# 1 is better than 0
set -g base-index 1
setw -g pane-base-index 1
# terminal names
set -g set-titles on
set -g mouse on
# Toggle mouse on with ^B m (prefix is C-a)
bind m \
set -g mouse on \;\
display 'Mouse: ON'
# Toggle mouse off with ^B M
bind M \
set -g mouse off \;\
display 'Mouse: OFF'
# activity monitor
setw -g monitor-activity on
set -g visual-activity on
# active window colors
setw -g window-status-current-style "fg=white,bg=blue,bright"
# better highlighting of active pane
set-option -g pane-active-border-style "fg=blue"
# vi keys in copy mode: v to select, y to yank (tmux-yank sends y to the
# system clipboard on macOS and Linux)
setw -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi Escape send-keys -X cancel
# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-yank'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'