-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
55 lines (45 loc) · 1.51 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
# tmux plugin manager
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-open'
run '~/.tmux/plugins/tpm/tpm'
# reload config file
bind r source-file ~/.tmux.conf
# prefix key
set -g prefix C-t
unbind C-b
# highlight active window/pane
setw -g window-status-current-fg white
setw -g window-status-current-bg red
setw -g window-status-current-attr bright
set -g pane-active-border-fg white
set -g pane-active-border-bg yellow
# limit lines of history in the window
set -g history-limit 100000
# enable mouse
set-option -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
# status bar
set -g status-interval 1
set -g status-fg white
set -g status-bg yellow
set -g status-left-length 50
set -g status-left "#[fg=black]Session:[#S] "
set -g status-right-length 50
set -g status-right "#[fg=black][#(tmux show-options -g prefix)][%Y/%m/%d(%a) %H:%M:%S]"
setw -g window-status-fg black
setw -g window-status-bg green
setw -g window-status-attr dim
# copy
setw -g mode-keys emacs
bind C-w copy-mode
bind M-w copy-mode
bind C-y paste-buffer
bind-key -T copy-mode C-w send-keys -X copy-pipe-and-cancel 'xsel -ip && xsel -op | xsel -ib'
bind-key -T copy-mode M-w send-keys -X copy-pipe-and-cancel 'xsel -ip && xsel -op | xsel -ib'
# clock
setw -g clock-mode-style 24
# color
set -g default-terminal "xterm-256color"