-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
54 lines (42 loc) · 1.63 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
# set tmux position
set-option -g status-position top
# improve colors
set -g default-terminal "tmux-256color"
# set -g default-terminal "${TERM}"
set -ga terminal-overrides ",*256col*:Tc"
# enable mouse control
set -g mouse on
# act like vim
setw -g mode-keys vi
# copy relat
# bind -T copy-mode-vi v send -X begin-selection
# bind P paste-buffer
# bind-key -T copy-mode-vi y send -X copy-selection-and-cancel
# bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel
bind-key ] copy-mode
bind P paste-buffer # paste content
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer "$(xclip -o -sel clipboard)"; tmux paste-buffer"
bind-key -T copy-mode-vi "v" send -X begin-selection
bind-key -T copy-mode-vi "V" send -X rectangle-toggle
bind-key -T copy-mode-vi "y" send -X copy-selection-and-cancel
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel
# Copy selection on drag end event, but do not cancel copy mode and do not clear selection
# clear select on subsequence mouse click
bind-key -T copy-mode-vi MouseDragEnd1Pane \
send-keys -X copy-pipe "$yank"
bind-key -T copy-mode-vi MouseDown1Pane select-pane \;\
send-keys -X clear-selection
# renumber windows sequentially after closing any of them
set -g renumber-windows on
# monitor windows for activity
setw -g monitor-activity on
# don't wait for escape sequences
set -sg escape-time 0
# increase scrollback lines
set -g history-limit 65536
# pane number display
set -g display-panes-active-colour colour166 #blue
set -g display-panes-colour colour33 #orange
# clock
setw -g clock-mode-colour colour64 #green