-
Notifications
You must be signed in to change notification settings - Fork 7
/
tmux.conf
71 lines (58 loc) · 2.38 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
MAXLAYOUT="7996,301x86,0,0[301x77,0,0,0,301x8,0,78{150x8,0,78,1,150x8,151,78,2}]"
bind _ select-layout $MAXLAYOUT
bind = select-layout even-vertical
bind r source-file ~/.tmux.conf \; display-message " reloaded .tmux.conf"
bind Enter split-window -v -c '#{pane_current_path}'
bind | split-window -h -c '#{pane_current_path}'
bind -n C-M-l select-window -n
bind -n C-M-h select-window -p
# Smart pane switching with awareness of Vim splits.
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind-key -T copy-mode-vi C-h select-pane -L
bind-key -T copy-mode-vi C-j select-pane -D
bind-key -T copy-mode-vi C-k select-pane -U
bind-key -T copy-mode-vi C-l select-pane -R
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
set -g escape-time 0
set -g allow-rename off
set -g base-index 1
set -g pane-base-index 1
set -g history-limit 10000
set -g mouse on
set -g set-titles on
set -g set-titles-string "#T"
set -g renumber-windows on
# set -ga terminal-overrides ",tmux-256color*:Tc,xterm*:Tc"
set -g default-terminal "xterm-256color"
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
# appearance
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
set -g bell-action none
setw -g monitor-activity on
set -g status-interval 1
set -g status-position top
set -g status-justify left
set -g status-style 'fg=colour15 bg=colour0'
setw -g pane-border-style "fg=colour4"
setw -g pane-active-border-style "fg=colour5"
setw -g window-status-current-style 'fg=colour0 bg=colour5'
set -g status-left ' tmux@#h '
set -g status-left-length 16
set -g status-left-style ''
set -g status-right '#{?client_prefix,#[reverse]<Prefix>#[noreverse] ,}%d %b %I:%M %p'
set -g status-right-style ''
setw -g window-status-style ''
setw -g window-status-format ' #I:#W#F '
setw -g window-status-current-format '║ #I:#W#F ║'
setw -g pane-border-status off
setw -g pane-border-format "┤ #P#{?pane_active,*, } ├"