-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
67 lines (57 loc) · 2.02 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
set -g buffer-limit 20
set -s escape-time 0
set -g base-index 1
set -g pane-base-index 1
set -g display-time 4000
set -g allow-passthrough on
# status and window options
set -g status on
set -g status-interval 60
set -g status-style bg=colour235,fg=colour235
set -g status-left "#[bg=colour235,fg=colour223,bold][#S] "
set -g status-right "#[bg=colour235,fg=colour223,bold] [#(whoami)@#H]"
set -g status-left-length 50
set -g status-justify left
set -g window-status-format "#[bg=colour235,fg=colour223] #I|#W#F "
set -g window-status-current-format "#[bg=colour172,fg=colour235] #I|#W "
set -g window-status-separator ""
set -g window-status-bell-style bg=colour167,fg=colour235
set -g window-status-activity-style bg=colour237,fg=colour248
set -g message-style bg=colour239,fg=colour223
set -g message-command-style bg=colour239,fg=colour223
set -g pane-active-border-style fg=colour250
set -g pane-border-style fg=colour237
set -g default-terminal "tmux-256color"
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
# custom keybinds
# remap prefix from 'C-b' to 'M-b'
unbind C-b
set-option -g prefix M-b
bind-key M-b send-prefix
# split panes using | and -
bind '\' split-window -h
bind - split-window -v
unbind '"'
unbind %
# switch panes using Alt-arrow without prefix
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
bind C-k resize-pane -U
bind C-j resize-pane -D
bind C-h resize-pane -L
bind C-l resize-pane -R
bind , swap-window -t -1\; select-window -t -1
bind . swap-window -t +1\; select-window -t +1
# Enable mouse mode (tmux 2.1 and above)
set -g mouse on
setw -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel --clipboard"
bind P paste-buffer
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel --clipboard"
# extensions
# set -g @plugin 'tmux-plugins/tmux-yank'
# run '~/.tmux/plugins/tpm/tpm'