-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
45 lines (35 loc) · 1.38 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
# remap prefix from 'C-b' to 'C-s'
unbind C-b
set-option -g prefix C-s
bind-key C-s send-prefix
bind R source-file ~/.tmux.conf
bind v split-window -h -c "#{pane_current_path}"
# Synchronize input to all panes (toggle)
bind s set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
# kep more history than default 2000
set-option -g history-limit 50000
# Allows for faster key repetition
set -s escape-time 20
# Rather than constraining window size to the maximum size of any client
# connected to the *session*, constrain window size to the maximum size of any
# client connected to *that window*. Much more reasonable.
setw -g aggressive-resize on
# color
set -g default-terminal "screen-256color"
# For user vars in Wezterm to work
set -g allow-passthrough on
# Vi copypaste mode
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
bind-key -T copy-mode-vi 'Y' send -X copy-pipe-and-cancel "xclip -i -sel p -f | xclip -i -sel c" \; display-message "copied to system clipboard"
# hjkl pane traversal
bind h select-pane -L
bind l select-pane -R
bind j select-pane -D
bind k select-pane -U
bind < resize-pane -L 10
bind > resize-pane -R 10
bind - resize-pane -D 10
bind + resize-pane -U 10