-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmux.conf
41 lines (30 loc) · 1.13 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
# Tmux v3.3a
# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
# split panes using | and -
bind | split-window -h -c "#{pane_current_path}"
bind - split-window -v -c "#{pane_current_path}"
unbind '"'
unbind %
set -g update-environment -r
# switch panes using Alt-arrow without prefix
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Start windows and panes at 1, not 0
set -g base-index 1
# style
set -g status-style fg=colour255,bg=colour235
set -g status-right "#[fg=white]#[bg=colour240]\[#(hostname -s)\] %d %b %R "
set -g window-status-style bg=colour244,fg=black
set -g window-status-current-style bg=colour81,fg=black
set -g window-status-format ' #I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F '
set -g window-status-current-format ' #I:#(pwd="#{pane_current_path}"; echo ${pwd####*/})#F '
set -gwF pane-active-border-style fg=colour81,bg=black
set -gwF pane-border-style fg=colour244,bg=black
# status bar updates every 15s by default
set -g status-interval 5
set -g default-terminal "tmux-256color"