-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtmux.conf
80 lines (74 loc) · 2.8 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
unbind C-b
set -g prefix C-f
set-option -g default-shell $SHELL
set -g default-terminal 'xterm-256color'
set -as terminal-overrides ',xterm*:Tc:sitm=\E[3m'
set -g history-limit 50000
setw -g mode-keys vi
set -sg escape-time 0
set -g repeat-time 300
set -g base-index 1
setw -g pane-base-index 1
set-option -g allow-rename off
set -g status-interval 30
set -g pane-active-border-style fg=default,bg=default
set -g pane-border-style fg=default,bg=default
set-option -g status-style bg=default,fg=white
set-option -g status-fg white
set-option -g detach-on-destroy off
set-option -g message-style bg=black,fg=green
set-option -g display-panes-active-colour blue
set-option -g display-panes-colour brightred
set -g mouse on
set -g status-left '[#S]'
set -g status-right "%H:%M %m.%d"
set -g status-left-length 300
set -g window-status-format " #W"
set -g window-status-current-format " #W"
set -g window-status-style fg=white,bg=default
set -g window-status-current-style fg=red,bg=default
set -g window-status-activity-style fg=blue,bg=default
set -g window-status-bell-style fg=blue,bg=default
setw -g monitor-activity off
set -g visual-activity off
set -g visual-bell off
set -g bell-action any
set -g renumber-windows on
# unbind %
# unbind '"'
bind-key b set-option status
bind-key S choose-window 'join-pane -v -s "%%"'
bind-key V choose-window 'join-pane -h -s "%%"'
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -n ± select-layout even-horizontal
bind-key -n ÷ command-prompt "rename-window %%"
bind-key -n ≈ kill-pane
bind-key -n ç new-window
bind-key -n ¬ next-window
bind-key -n ˙ previous-window
bind-key -n ⌟ resize-pane -Z
bind-key Space choose-window
bind | split-window -hp 25
bind -n « split-window -hp 25
bind - split-window -vp 40
bind -n ‘ split-window -vp 40
bind-key = select-layout even-horizontal
bind -n Ó resize-pane -L 5
bind -n Ô resize-pane -D 5
bind -n resize-pane -U 5
bind -n Ò resize-pane -R 5
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
bind-key -n C-S-Left swap-window -t -1\; select-window -t -1
bind-key -n C-S-Right swap-window -t +1\; select-window -t +1
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 h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind-key j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind-key k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind-key l if-shell "$is_vim" "send-keys C-l" "select-pane -R"