-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
67 lines (58 loc) · 2.1 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
62
63
64
65
66
67
# Vi mode
setw -g mode-keys vi
set -g status-keys vi
# Mouse mode
set -g mouse on
# start counting from 1
set -g base-index 1
setw -g pane-base-index 1
# Keybinds
set -g prefix C-a
unbind C-b
bind C-a send-prefix
bind r source-file ~/.tmux.conf \; display "Reloading... (run `tmux kill-server` if nothing changes)"
bind x kill-pane
bind & kill-window
bind v split-window -h
bind s split-window -v
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# (Neo)vim compatibility
# WARN: <C-m> sends <CR> to Vim, not <C-m>, so on-the-fly spelling corrections are broken
# https://github.com/tmux/tmux/issues/2705
set -g escape-time 0
set -g focus-events on
# Terminal integration
set -g set-titles on
set -g set-titles-string "#T"
set -g default-terminal "screen-256color"
# Increase messages display duration to 4s
set -g display-time 4000
# Configure pane borders
set -g pane-border-style "fg=#313244"
set -g pane-active-border-style "fg=#a6adc8"
# Configure command prompt
set -g message-command-style "bg=#89b4fa,fg=#313244"
set -g message-style "bg=#89b4fa,fg=#313244"
set -g mode-style "bg=#89b4fa,fg=#313244"
# Configure statusline
set -g status-interval 3
set -g status-position top
set -g status-left-length 90
set -g status-right-length 90
set -g status-style "fg=#313244,bg=#a6adc8"
set -g status-left "#[fg=#313245,bg=#89b4fa,bold] #S #[fg=#89b4fa,bg=#313244]"
set -g status-justify "left"
set -g window-status-format "#[fg=#6c7086,bg=#313244] #I:#W #[fg=#cdd6f4,bg=#313244]#{?window_end_flag,,}#[fg=#313244,bg=#a6adc8]#{?window_end_flag, #(dirs -c; dirs),}"
set -g window-status-current-format "#[fg=#cdd6f4,bg=#313244] #I:#W #{?window_end_flag,,}#[fg=#313244,bg=#a6adc8]#{?window_end_flag, #(dirs -c; dirs),}"
set -g status-right ""
setw -g window-status-separator ""
set -g status-right "#[fg=#313244,bg=#a6adc8]#{t/f/%%b %%d %%R:start_time} \
#[fg=#313244,bg=#a6adc8]#[fg=#cdd6f4,bg=#313244] #H \
#[fg=#89b4fa,bg=#313245,bold]#[fg=#313245,bg=#89b4fa,bold] #{version} "