-
Notifications
You must be signed in to change notification settings - Fork 2
/
tmux.conf
61 lines (49 loc) · 1.57 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
# status bar
set -g status on
set -g status-interval 1
set -g status-left-length 60
set -g status-right-length 90
set -g status-style 'fg=white bg=black'
set -g status-left '\o/ #[fg=red]@#H:#S'
set -g status-right "#[fg=brightcyan]#(uptime | awk '{print $1\" \"$2\" \"$3$4\" \"$5\" [\"$10\" \"$11\" \"$12\"]\"}')"
# window status current
setw -g window-status-current-format '#[fg=red,bg=blue] #W'
# window status
setw -g window-status-format '#[fg=brightcyan,bg=black] #W'
# pane border
setw -g pane-border-style 'fg=black'
setw -g pane-active-border-style 'fg=brightblack'
# message text
set -g message-style 'fg=brightred,bg=black'
# pane number display
set -g display-panes-active-colour brightred
set -g display-panes-colour green
# clock
setw -g clock-mode-colour brightblue
set -g lock-command "/usr/bin/tmux clock-mode"
# Automatically set window title
setw -g automatic-rename on
# use the vim motion keys to move between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# rebind the resize keys
bind -r C-h resizep -L 1
bind -r C-j resizep -D 1
bind -r C-k resizep -U 1
bind -r C-l resizep -R 1
# bind shift-LR as prev and next
bind -n S-left prev
bind -n S-right next
# easy-to-remember split pane commands
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
bind c new-window -c "#{pane_current_path}"
# misc
setw -g aggressive-resize on
setw -g mode-keys vi
set -g default-terminal tmux-256color
set-option -g default-command bash
set -s escape-time 0
set -g history-limit 1000000