-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
62 lines (46 loc) · 1.5 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
#### keys binding
# bind : default table 'prefix'
# bind -n : alias for table 'root', -T root
# bind -r : option to allow key repeat
# prefix key
set-option -g prefix C-q
# time allowed to repeat key following prefix key
set-option -g repeat-time 500
# set history to 5000
set-option -g history-limit 5000
# tmux-continuum
set -g @continuum-boot 'on'
set -g @continuum-restore 'on'
# set -g mouse on # set mouse on
# unbind -a # unbind all keys binding
# Reload configuration file from within TMUX
bind R source-file ~/.tmux.conf \; display-message "Reload source-file: done"
# Enable mouse mode with 'm' and disable with 'M'
bind m set -g mouse on \; display 'Mouse: ON'
bind M set -g mouse off \; display 'Mouse: OFF'
# Kill command for fast exit with confirmation prompt
bind k confirm kill-window
bind K confirm kill-server
# Better page scrolling
bind -n C-Up copy-mode -e
bind -n M-Up copy-mode -u
# Switch panes using Alt-arrow without prefix
#bind -n C-Left select-pane -L
#bind -n C-Right select-pane -R
#bind -n C-Up select-pane -U
#bind -n C-Down select-pane -D
# next
#bind -r Space set -s repeat-time 1000 \; next-layout
bind -r Space next-layout
bind -r C-n select-pane -t :.+
bind -r C-p select-pane -t :.-
bind -r n next-window
bind -r p previous-window
bind -r < switch-client -n
bind -r > switch-client -p
bind -r o rotate-window
bind -r C-o rotate-window
#### plugins
# resurect plugin
run-shell ~/.tmux/plugins/tmux-resurrect/resurrect.tmux
run-shell ~/.tmux/plugins/tmux-continuum/continuum.tmux