-
Notifications
You must be signed in to change notification settings - Fork 7
/
tmux.conf
74 lines (62 loc) · 2.49 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
# bind -n C-h select-pane -L
# bind -n C-j select-pane -D
# bind -n C-k select-pane -U
# bind -n C-l select-pane -R
bind _ resize-pane -t 2 -y 5
bind = select-layout tiled
bind r source-file ~/.tmux.conf \; display-message " reloaded .tmux.conf"
bind Enter split-window -v
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 -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
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 C-\ select-pane -l
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 10
set -g default-terminal "tmux-256color"
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 -g default-terminal "tmux-256color"
set -ga terminal-overrides ",tmux-256color*:Tc,xterm*:Tc"
# 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=colour255 bg=colour0'
set -g status-left ' '
set -g status-right ' #{?client_prefix,#[reverse]<Prefix>#[noreverse] ,} %d-%b — %H:%M:%S'
set -g status-right-style ''
setw -g window-status-style ''
setw -g window-status-format ' #I:#W#F '
setw -g window-status-current-style 'fg=colour229 bg=colour235'
setw -g window-status-current-format '║ #I:#W#F ║'
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
setw -g pane-border-status off
setw -g pane-border-format "┤ #P#{?pane_active,*, } ├"
setw -g pane-border-style "fg=colour238"
setw -g pane-active-border-style "fg=colour229"
set -g message-style 'fg=colour229 bg=colour0'