-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
57 lines (44 loc) · 2.35 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
set-option -g prefix C-a
bind-key C-a last-window
bind-key a send-prefix
unbind-key C-b
set-window-option -g mode-keys vi
set-option -g status-keys emacs
set-window-option -g clock-mode-style 12
set-window-option -g clock-mode-colour colour31
# Make it so we don't have to release the Ctrl key when switching windows
bind-key C-p previous-window
bind-key C-n next-window
# Use Vim-like navigation for panes instead of requiring arrow keys
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
# Refresh configuration with C-a, R
bind-key R source-file ~/.tmux.conf \; display-message 'Sourced .tmux.conf'
# Start numbering windows at 1 so layout of windows matches layout of number
# keys on keyboard
set-option -g base-index 1
# Highlight status line when activity occurs in inactive window
set-window-option -g monitor-activity on
set-option -g history-limit 100000
set-option -s escape-time 0
set-option -g display-time 4000
set-option -g default-terminal 'screen-256color'
set-option -g focus-events on
set-option -g status-position top
set-option -g status-style bg=colour233
set-option -g status-left-length 20
set-option -g status-left "#{?client_prefix,#[fg=colour255]#[bg=colour31],#[fg=colour16]#[bg=colour254]}#[bold] #{session_name} #[bg=colour233,nobold] "
set-option -g status-right "#[fg=colour247,bg=colour233] up #(tmux-format-uptime) #[fg=colour247,bg=colour236] #(date +%F) #[fg=colour252,bold] #(date '+%l:%M %P') #[nobold]#{?client_prefix,#[fg=colour255]#[bg=colour31],#[fg=colour16]#[bg=colour252]}#[bold] #{host_short} "
set-option -g status-right-length 150
set-window-option -g window-status-style none
set-window-option -g window-status-activity-style none
set-window-option -g window-status-bell-style none
set-window-option -g window-status-current-style none
set-window-option -g window-status-last-style none
set-window-option -g window-status-separator ""
set-window-option -g window-status-current-format "#[fg=colour117,bg=colour31] (#I)#{?window_bell_flag,🔔, }#[fg=colour231,bold]#W:#T#{?window_activity_flag,#[fg=red]Δ, }"
set-window-option -g window-status-format "#[fg=colour244] (#I)#{?window_bell_flag,🔔, }#{?window_last_flag,#[fg=colour11],#[fg=colour231]}#W:#T#{?window_activity_flag,#[fg=red]Δ, }"
set-option -g set-titles on
set-window-option -g pane-active-border-style fg=red