aboutsummaryrefslogtreecommitdiff
path: root/tmux.conf
blob: cbbb0af467afa68b9a1425c9d87a6d8acbdeb905 (plain)
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
# vi bindings
set-option -g status-keys vi
set-window-option -g mode-keys vi

set-window-option -g window-status-current-attr bright
set -g status-right '#(date "+%H:%M %Z %Y-%m-%d")'
set -g status-bg white
set -g status-left " #S@#h "
set -g status-left-length 15
set -g status-left-bg green
set -g status-left-fg white
set -g set-titles on
set -g default-terminal "screen-256color"

# reversed to match vim split names
bind-key v select-layout even-horizontal
bind-key h select-layout even-vertical

# vim-style resize
bind -r H resize-pane -L 2
bind -r J resize-pane -D 2
bind -r K resize-pane -U 2
bind -r L resize-pane -R 2

# vim-style move
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R

# bound arrow keys are annoying
unbind Up
unbind Down
unbind Left
unbind Right
unbind M-Up
unbind M-Down
unbind M-Left
unbind M-Right
unbind C-Up
unbind C-Down
unbind C-Left
unbind C-Right

# reasonable history buffer
set -g history-limit 10000