-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.tmux.conf
111 lines (75 loc) · 2.16 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# server
# nuke escape (who doesn't have an alt key these days?)
set -s escape-time 0
# session
# start window numbering at 1
set -g base-index 1
# no login shells
set -g default-command 'exec $SHELL'
set -g default-terminal screen-256color
# messages vanish a bit quick
set -g display-time 3000
# be an elephant
set -g history-limit 128000
# status message style
set -g message-style fg=colour196,bg=colour233
# mouse settings
set -g mouse on
# style the borders
set -g pane-active-border-style fg=colour35
set -g pane-border-style fg=colour241
# replace unacceptable C-b prefix
set -g prefix C-a
# render long session names
set -g status-left-length 20
# show pane tty rather than title
set -g status-right '"#{=22:pane_tty}" %H:%M %d-%b-%y'
# style the status line
set -g status-style fg=colour240,bg=colour233
# window
# only constrain if someone's looking
set -gw aggressive-resize on
# style window modes
set -gw mode-style fg=colour220
# good to know what's going on
set -gw monitor-activity on
# start pane numbering at 1
set -gw pane-base-index 1
# window status styles
set -gw window-status-activity-style fg=colour220
set -gw window-status-bell-style fg=colour202
set -gw window-status-current-style fg=white
set -gw window-status-style fg=colour236
# bindings
# escape nests
bind a send-prefix
# splits
bind s split-window -v
bind v split-window -h
# reloading
bind R source-file $HOME/.tmux.conf
# remap session select: 's'
bind S choose-tree
# pane switching vi style
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
# remap last window: 'l'
bind BSpace last-window
# pane resizing vi style
bind -r < resize-pane -L
bind -r - resize-pane -D
bind -r + resize-pane -U
bind -r > resize-pane -R
# remap delete buffer: '-'
bind _ delete-buffer
# bindings: copy-mode-vi
# make copy mode more vimmy
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-selection
# remap selection type toggle: 'v'
bind-key -T copy-mode-vi V send-keys -X rectangle-toggle
# extra navigation
bind -T copy-mode-vi Home send-keys -X start-of-line
bind -T copy-mode-vi End send-keys -X end-of-line