forked from samnang/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtmux.conf
More file actions
75 lines (60 loc) · 2.13 KB
/
tmux.conf
File metadata and controls
75 lines (60 loc) · 2.13 KB
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
# Ctrl-a instead of Ctrl-b
set -g prefix C-a
unbind C-b
bind C-a send-prefix
set -sg escape-time 1 # changing the Default Delay
set -g default-terminal "xterm-256color"
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# listen for activity on all windows
set -g bell-action any
setw -g mode-keys vi
unbind [
bind Escape copy-mode
unbind p
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind -t vi-copy 'y' copy-selection
bind-key a last-window # go to last-window
bind-key b break-pane # break pane into window
bind-key / command-prompt "find-window %1" # find window
# force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# kill
unbind K
bind K confirm-before "kill-window"
unbind ^x
bind ^x kill-pane
bind | split-window -h # alternative Ctrl-a "
bind - split-window -v # alternative Ctrl-a %
# panes navigation
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# resize panes and repeat
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
# pane
set -g pane-border-fg colour245
set -g pane-active-border-fg colour39
set -g message-fg colour16
set -g message-bg colour221
set -g message-attr bold
# status bar
set -g status-left-length 32
set -g status-fg white
set -g status-bg colour234
set -g status-justify centre
set -g status-utf8 on
set -g status-interval 60
set -g window-status-activity-attr bold
set -g status-left '#[fg=colour235,bg=colour252,bold] ❐ #[fg=colour245,bg=colour238,bold] #(wemux status_users) '
setw -g window-status-format '#[fg=colour235,bg=colour252,bold] #I #[fg=colour245,bg=default,nobold] #W '
set -g status-right '[ %Y-%m-%d %H:%M ]'
set -g window-status-current-format "#[fg=colour235,bg=colour39,noreverse,bold] #I #[fg=colour226,bg=colour238] #W "