-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathtmux.conf
56 lines (45 loc) · 1.59 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
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour136 #yellow
# pane number display
set-option -g display-panes-active-colour colour33 #blue
set-option -g display-panes-colour colour166 #orange
# clock
set-window-option -g clock-mode-colour colour64 #green
set -g default-terminal "screen-256color"
#### Key bind
# Key bindings for horizontal and vertical panes
unbind C-b
set -g prefix C-a
bind C-a send-prefix
unbind %
bind | split-window -h -c '#{pane_current_path}'
unbind '"'
bind - split-window -v -c '#{pane_current_path}'
bind h select-pane -L # switch to left pane
bind j select-pane -D # switch to down pane
bind k select-pane -U # switch to up pane
bind l select-pane -R # switch to right pane
bind L resize-pane -L 10 # left expand
bind R resize-pane -R 10 # right expand
bind K resize-pane -U 5 # up expand
bind J resize-pane -D 5 # down expand
set -g mouse on
# List of plugins
# prefix S-i for install
# prefix S-u for update
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin '[email protected]/user/plugin'
# set -g @plugin '[email protected]/user/plugin'
# tmux-resurrect
# prefix C-s for save
# prefix C-r for reload
set -g @resurrect-save-bash-history 'on'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-vim 'session'
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run -b '~/.tmux/plugins/tpm/tpm'