summaryrefslogtreecommitdiff
path: root/tmux.conf
blob: 78fcae05e372ebc3d51372a65025d11d8d5dbdf4 (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
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
set-option -g status-style bg=colour235 #base02
set-option -g status-style fg=colour136 #yellow

bind-key v split-window -h
bind-key b split-window

set-window-option -g window-status-style fg=colour244 #base0
set-window-option -g window-status-style bg=default

set-window-option -g window-status-current-style fg=colour166 #orange
set-window-option -g window-status-current-style bg=default

set-option -g pane-border-style fg=colour235 #base02
set-option -g pane-active-border-style fg=colour240 #base01

set-option -g message-style bg=colour235 #base02
set-option -g message-style fg=colour166 #orange

set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
set-window-option -g clock-mode-colour green #green


set -g status-interval 1
set -g status-justify centre # center align window list
set -g status-left-length 100
set -g status-right-length 140
set -g status-left "#[fg=colour14]#(whoami)@#h #[fg=colour11]#S#[default]"

set -g status-right '#[fg=green,bg=default,bright]#(tmux-mem-cpu-load) #[fg=yellow,dim,bg=default]#(uptime | cut -f 4-5 -d " " | cut -f 1 -d ",") #[fg=white,bright]#(TZ=Asia/Hong_Kong date)'


set -g base-index 1

set -s escape-time 0

setw -g aggressive-resize on

set -g mouse on

set -g prefix C-a
unbind C-b
bind C-a send-prefix

setw -g monitor-activity on
set -g visual-activity on

set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel

bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R

bind H resize-pane -L
bind J resize-pane -D
bind K resize-pane -U
bind L resize-pane -R

bind m set-window-option main-pane-height 60\; select-layout main-horizontal

bind-key C command-prompt -p "Name of new window: " "new-window -n '%%'"

bind r source-file ~/.tmux.conf \; display-message "Config reloaded..."

set-window-option -g automatic-rename

set -g default-terminal "screen-256color"
set-option -g history-limit 13000