-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtmux-remote.conf
34 lines (30 loc) · 965 Bytes
/
tmux-remote.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
# Minimal config for nested/remote sessions;
# simply copy-paste into their ~/.tmux.conf
### Additional Prefix ###
set-option -g prefix2 C-a
bind-key C-a send-prefix -2
### Easier Command Prompt ###
unbind-key ';'
bind-key ';' command-prompt
### Window Movements ###
unbind-key [
unbind-key ]
unbind-key '{'
unbind-key '}'
bind-key -r [ previous-window
bind-key -r ] next-window
bind-key -r "{" swap-window -d -t -1
bind-key -r "}" swap-window -d -t +1
### Copy Mode
unbind-key n
unbind-key p
bind-key C-c copy-mode
bind-key p paste-buffer -p
set-option -wg mode-keys vi
unbind-key -T copy-mode-vi Space
unbind-key -T copy-mode-vi v
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancle
bind-key -T copy-mode-vi Y send-keys -X copy-end-of-line-and-cancel
bind-key -T copy-mode-vi C-y send-keys -X copy-line-and-cancel
bind-key -T copy-mode-vi Space send-keys -X rectangle-toggle