-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux.conf
51 lines (40 loc) · 1.83 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
# set the default shell to enable using tmux as a login shell
set-option -g default-shell /bin/bash
# set general options
set-option -g history-limit 20000
set-option -g display-time 2000
# custom keybindings
bind-key -n M-l set-window-option synchronize-panes
bind-key '"' split-window -v -c "#{pane_current_path}"
bind-key '%' split-window -h -c "#{pane_current_path}"
# renumber windows on close and start counting at 1
set-option -g renumber-windows on
set-option -g base-index 1
set-window-option -g pane-base-index 1
bind-key 0 select-window -t :10
# set additional prefix key
set-option -g prefix2 C-space
bind-key C-space last-window
bind-key C-b last-window
# enable mouse support
set-option -g mouse on
# use vi style keys in copy mode
set-window-option -g mode-keys vi
# configure the window selector
set-window-option -g window-status-current-style bg=black,fg=yellow,underscore
set-window-option -g window-status-style bg=black,fg=green,underscore
set-window-option -g window-status-current-format "#{?pane_synchronized,#[bg=yellow]#[fg=black],}[#I:#W#{?window_flags,:,}#F]"
set-window-option -g window-status-format "#{?pane_synchronized,#[bg=green]#[fg=black],}#I:#W#{?window_flags,:,}#F"
set-window-option -g window-status-separator " "
# configure the pane borders
set-window-option -g pane-border-style bg=default,fg=white
set-window-option -g pane-active-border-style bg=default,fg=green
# configure the status bar
set-option -g status-style fg=green,bg=black,underscore
set-option -g status-position top
set-option -g status-left-length 100
set-option -g status-left "[#{session_name}] #[fg=brightblue]#{host}:#{pane_current_path}#[fg=green] | "
set-option -g status-right-length 100
set-option -g status-right " | #(uptime|awk -F', ' '{ print $3 }') #[fg=red]| %F %H:%M"
# configure copy mode
set-window-option -g mode-style bg=black,fg=red,bold