-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_tmux.conf
64 lines (46 loc) · 1.39 KB
/
dot_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
##################################
####### SECTION: plugins
##################################
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
run -b '~/.tmux/plugins/tpm/tpm'
##################################
####### SECTION: common
##################################
# change tmux prefix key
unbind C-b
set -g prefix C-q
bind C-q send-prefix
# use vim-like
setw -g mode-keys vi
# reload config
bind-key r source-file ~/.tmux.conf \; display-message "tmux.conf reload"
# split window
bind-key v split-window -h
bind-key s split-window
# use hjkl to switch windows
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# shorter the escape time
set -sg escape-time 10
set -g focus-events on
# fix turecolor
set -g default-terminal "tmux-256color"
set -sa terminal-overrides ',xterm-256color:RGB'
# mouse support
set -g mouse on
# status line + tmux-prefix, show highlight when prefix is pressed
set -g status-right '#{prefix_highlight} %Y-%m-%d %a %H:%M'
# title for terminal emulator
set -g set-titles on
set -g set-titles-string "#T"
##################################
####### SECTION: plugin settings
##################################
##################################
####### SECTION: key bindings
##################################