-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
66 lines (54 loc) · 1.6 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
# Reset prefix
unbind C-b
set -g prefix C-g
# Set vi key bindings mode
set -g mode-keys vi
set -g status-keys vi
# Set status
set -g base-index 1
set -g renumber-windows on
set -g mouse on
set -g pane-base-index 1
set -g set-clipboard on
set -g history-limit 10000
set -g status-justify centre
# List of 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-continuum'
set -g @plugin 'dracula/tmux'
# Set 256color
set -g default-terminal 'screen-256color'
set -g terminal-overrides ",xterm-256color*:Tc"
# continuum
set -g @continuum-restore 'on'
# dracula
set -g @dracula-plugins "battery weather time"
set -g @dracula-show-flags true
set -g @dracula-show-fahrenheit false
set -g @dracula-show-location true
set -g @dracula-military-time true
set -g @dracula-fixed-location Chongqing
set -g @dracula-show-powerline true
set -g @dracula-show-network false
set -g @show_border_contrast true
# bind new key
bind \\ split-window -h
bind - split-window
bind r source-file ~/.tmux.conf
bind c new-window -c "#{pane_current_path}"
# 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
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
# switch window using shift+arrow without prefix
bind-key S-Left swap-window -t -1
bind-key S-Right swap-window -t +1
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'