aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
blob: 89fac8abe0881a46bbf7ad8fd256f4617e1da2f1 (plain) (blame)
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
# Prefix
unbind-key C-b
set-option -g prefix C-a
bind-key a send-prefix
bind-key C-a last-window

# Bindings
bind-key '/' confirm-before "kill-window"
bind-key '\' confirm-before "kill-server"
bind-key '_' split-window -v
bind-key '|' split-window -h
bind-key Tab last-pane

# Vim-like pane resize
bind-key -r '+' resize-pane -U 5
bind-key -r '-' resize-pane -D 5
bind-key -r '<' resize-pane -L 5
bind-key -r '>' resize-pane -R 5

# Allow repeats for next/prev window
bind-key -r n next-window
bind-key -r p previous-window

# Vim-like select/yank
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind-key -t vi-copy Escape cancel

# Vim-like pane switching
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R

# Join and break panes
bind-key J choose-window "join-pane -h -s '%%'"
bind-key B break-pane -d

# Choose only sessions, don't care about windows
bind-key s choose-session

# Activity
set-window-option -g monitor-activity on
set-window-option -g window-status-activity-attr none

# Status bar
set-option -g status-left '[#S]'
set-option -g status-right '[#H] #(date +"%F %T")'

# Miscellaneous
set-option -g base-index 1
set-option -g escape-time 0
set-option -g history-limit 100000
set-option -g set-clipboard off
set-window-option -g aggressive-resize on
set-window-option -g automatic-rename on
set-window-option -g mode-keys vi

# Formatting
set-window-option -g window-status-format "#I:#W#F"

# Colors
set-option -g default-terminal 'screen-256color'
set-option -g message-bg colour18
set-option -g message-fg colour231
set-option -g pane-active-border-fg colour237
set-option -g pane-border-fg colour237
set-option -g status-bg colour237
set-option -g status-fg colour248
set-window-option -g mode-bg colour18
set-window-option -g mode-fg colour231
set-window-option -g window-status-attr none
set-window-option -g window-status-fg colour16
set-window-option -g window-status-current-attr none
set-window-option -g window-status-current-fg colour231
set-window-option -g window-status-bell-attr none
set-window-option -g window-status-bell-bg colour9