-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
52 lines (40 loc) · 1.21 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
# colors
set -g default-terminal "screen-256color"
setw -g xterm-keys on
# descrese escape time
set -s escape-time 10
set -sg repeat-time 600
set -s focus-events on
set -g history-limit 5000 # boost history
# one-based index
set -g base-index 1
setw -g pane-base-index 1
# rename
setw -g automatic-rename on
set -g renumber-windows on
set -g set-titles on
set -g set-titles-string '#h ❐ #S ● #I #W'
# extend pane indicators display time
set -g display-panes-time 4000
set -g display-time 1000
# refresh status
set -g status-interval 10
# activity
set -g monitor-activity on
set -g visual-activity off
# pane navigation
bind -r h select-pane -L # move left
bind -r j select-pane -D # move down
bind -r k select-pane -U # move up
bind -r l select-pane -R # move right
bind > swap-pane -D # swap current pane with the next one
bind < swap-pane -U # swap current pane with the previous one
# maximize current pane
bind + run 'cut -c3- ~/.tmux.conf | sh -s _maximize_pane "#{session_name}" #D'
# pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# toggle mouse
bind m run "cut -c3- ~/.tmux.conf | sh -s _toggle_mouse"