-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
84 lines (69 loc) · 2.26 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
# general settings
# --------------------
# prefix key binding
set -g prefix C-g
bind-key g send-prefix
unbind C-b
# index
set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
# reload .tmux.conf by prefix+r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# enable visual notification
setw -g monitor-activity on
set -g visual-activity on
# others
setw -g mouse on
set -g default-terminal screen-256color
set -g terminal-overrides xterm:colors=256
# status line & color settings
# --------------------
set -g status on
set -g status-position top
set -g status-interval 5 # [sec]?
set -g status-justify centre
set -g status-left-length 55
set -g status-right-length 55
set -g status-fg white
set -g status-bg colour238
# window
set -g window-style "fg=colour246,bg=colour237"
set -g window-active-style "fg=white,bg=colour235"
# window status
setw -g window-status-format " #I: #{b:pane_current_path} "
# highlight active window
setw -g window-status-current-style "fg=white,bg=colour24"
setw -g window-status-current-format " #I: #{b:pane_current_path} "
# status left & right
set -g status-style "fg=white,bold"
set -g status-left-style "bg=colour22"
set -g status-right-style "bg=colour94"
set -g status-left " #h | S:#S | W:#I | P:#P "
set -g status-right " #T "
# pane-border
set -g pane-border-style "fg=white,bg=colour238"
set -g pane-active-border-style "fg=colour38,bg=colour236"
# message
set -g message-style "fg=white,bg=colour61,bright"
# mode
setw -g mode-style "fg=colour3,bg=colour0"
# copy mode
setw -g mode-keys vi
# if-shell "[ `echo $(tmux -V | cut -d' ' -f2) '>=' 2.4 | bc -l` -eq 1 ]" \
"bind-key -T copy-mode-vi v send-keys -X begin-selection" \
"bind-key -t vi-copy v begin-selection" # < v2.4
# clipboard sharing
if-shell "[ `hostname | grep -qe Hideaki -qe Kanehara -qe dhcp` ]" \
"set -g default-command 'reattach-to-user-namespace -l zsh'" ""
# tpm
# ---------------
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# set -g @plugin 'tmux-plugins/tmux-continuum'
run '~/.tmux/plugins/tpm/tpm'