-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
65 lines (52 loc) · 1.67 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
#------------------------------------
# plugins
#------------------------------------
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @override_copy_command 'pbcopy'
#------------------------------------
# Status line
#------------------------------------
set-option -g status-interval 1
setw -g status-left "#[fg=colour7,bg=colour241] Session: #S #[default] "
setw -g status-right "#[fg=colour7,bg=colour241] %a %m %Y %H:%M "
setw -g status-right-length 50
setw -g status-left-length 50
setw -g status-style bg="colour0",fg="colour7"
setw -g window-status-separator ' '
setw -g window-status-format "#[bg=colour0,fg=colour7] #I #W "
setw -g window-status-current-format "#[bg=colour6,fg=colour7] #I #[bg=colour4,fg=colour7] #W "
#------------------------------------
# Key bindings
#------------------------------------
# prefix
set -g prefix C-q
unbind C-b
# split vertical with |
bind | split-window -h -c '#{pane_current_path}'
# split horizontal with -
bind - split-window -v -c '#{pane_current_path}'
# use vi keybindings to move pane
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# use vi key bindings to resize pane
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
# highlights active window
set -g set-clipboard off
#------------------------------------
# misc
#------------------------------------
# use 256 color terminal
set -g default-terminal "screen-256color"
# enable mouse
set-option -g mouse on
# enable focus-events for coc.nvim
set-option -g focus-events on
# disable escape-time
set-option -sg escape-time 0
run -b '~/.tmux/plugins/tpm/tpm'