-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
78 lines (58 loc) · 1.84 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# prevent delay
set -s escape-time 0
# window split
bind \\ split-window -h
bind - split-window -v
# panes navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# vim-like selection
# credits: https://superuser.com/a/1151663
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X select-line
bind-key -T copy-mode-vi C-v send -X rectangle-toggle
# copy from buffer to clipboard
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -selection clipboard'
# disable keys
unbind '"'
unbind %
# fix terminal color issue
set -ga terminal-overrides ",xterm-256color:Tc"
# disable renaming window automatically
set -g allow-rename off
# reorder after deleted one window
set -g renumber-windows on
# set update frequency (default 15 seconds)
set -g status-interval 5
# pane border
set -g pane-border-style fg=black
set -g pane-active-border-style fg=black
# status line
set -g status-style bg=default
set -g status-style fg=colour4
# status line left side
set -g status-left-length 40
set -g status-left "#[fg=colour16,bold,reverse] #S #[default] "
# status line right side
set -g status-right-length 60
set -g status-right "#[fg=colour16,bold,reverse] #{host} "
# status line unfocused and focused window
set-window-option -g window-status-style fg=colour239
set-window-option -g window-status-format '#[fg=colour16,bold]#I#[default]:#W'
set-window-option -g window-status-current-style fg=blue,bold
set-window-option -g window-status-current-format '#I:#W'
# message color
set -g message-style fg=colour4
# active border
set -g pane-active-border-style fg=colour4
# enable mouse mode
set -g mouse on
# tpm
set -g @plugin 'tmux-plugins/tpm'
# plugin
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @resurrect-strategy-nvim 'session'
# run tpm
run -b '~/.tmux/plugins/tpm/tpm'