/
tmux.conf
101 lines (82 loc) · 2.92 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# tmux plugin
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-yank'
set-option -g default-terminal "screen-256color"
set-option -g base-index 1
set-option -g prefix C-z
unbind C-b
bind-key C-z send-prefix
setw -g mode-keys vi
set-option -g status-keys vi
bind-key C-k select-pane -U
bind-key C-j select-pane -D
bind-key C-h select-pane -L
bind-key C-l select-pane -R
bind-key C new-window -c "#{pane_current_path}"
bind-key H split-window -h -c "#{pane_current_path}"
bind-key V split-window -c "#{pane_current_path}"
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
bind-key M-C clear-history
#status-*-style
#set -g status-left "#[fg=red]s#[fg=green]#S#[fg=red]:w#I.p#P#[default]"
set -g status-right "#{prefix_highlight}%Y-%m-%d %a %H:%M#[default]"
# mouse before 2.1
#set -g mouse-select-pane on
#set -g mouse-select-window on
#set-window-option -g mode-mouse on
#set -g mouse-resize-pane on
# mouse after 2.1
set -g mouse on
set-option -g renumber-windows on
set-option -g status-position top
set-window-option -g monitor-activity on
set-window-option -g allow-rename off
set-window-option -g automatic-rename on
# color 256
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
# active window title colors
set-window-option -g window-status-current-fg colour166 #orange
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
# pane border
set-option -g pane-border-fg colour235 #base02
set-option -g pane-active-border-fg colour240 #base01
# message text
set-option -g message-bg colour235 #base02
set-option -g message-fg colour166 #orange
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
set -g escape-time 10
#[tpm]
run-shell '~/.tmux/plugins/tpm/tpm'
#[tmux-prefix-highlight]
set -g @prefix_highlight_fg colour166
set -g @prefix_highlight_bg colour255
run-shell '~/.tmux/plugins/tmux-prefix-highlight/prefix_highlight.tmux'
#[tmux-resurrect]
set -g @resurrect-processes 'ssh'
# for vim
set -g @resurrect-strategy-vim 'session'
# for neovim
#set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'off'
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
#[tmux-copycat]
run-shell ~/.tmux/plugins/tmux-copycat/copycat.tmux
#[tmux-yank]
run-shell ~/.tmux/plugins/tmux-yank/yank.tmux