blob: 795aff63058d8bf23f2b6758cc9fd7656405eb38 (
plain) (
blame)
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
|
set -g default-terminal "screen-256color"
set-window-option -g mode-keys vi
# Vim style
# copy tmux's selection buffer into the primary X selection with PREFIX+CTRL+Y
bind-key u run "tmux save-buffer - | xsel -ib"
# copy primary X selection into tmux's selection buffer with PREFIX+CTRL+P
bind-key e run "xsel -o | tmux load-buffer -"
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
set-option -g set-titles on
set-option -g set-titles-string '#S> #I.#P #W'
set -g visual-activity on
set -g monitor-activity on
set -g visual-bell on
set -g bell-action any
## Join windows: <prefix> s, <prefix> j
bind-key j command-prompt -p "join pane from:" "join-pane -s '%%'"
bind-key s command-prompt -p "send pane to:" "join-pane -t '%%'"
|