-
Notifications
You must be signed in to change notification settings - Fork 0
/
.tmux.conf
35 lines (33 loc) · 1.33 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
# basics
# set-option -g default-terminal "tmux-256color"
set-option -g default-command "${SHELL}"
set-option -g history-limit 20000
set-option -g base-index 1
set-option -sg escape-time 30
set-window-option -g pane-base-index 1
# style
set-option -g set-titles on
set-option -g set-titles-string "#{client_termname}: #S.#I #T #{session_alerts}"
# set-option -g status-style fg=white,bg=black
# set-option -g status-right ""
# set-option -g message-style fg=white,bg=black,bold
# set-window-option -g window-status-current-style bold
set -g status off
# keys
set-window-option -g mouse on
bind-key -n S-Pageup copy-mode -u
bind-key -T copy-mode-vi PageDown send-keys -X page-down
bind-key -T copy-mode-vi S-PageDown send-keys -X page-down
bind-key -T copy-mode-vi PageUp send-keys -X page-up
bind-key -T copy-mode-vi S-PageUp send-keys -X page-up
bind-key -n M-Left select-pane -L
bind-key -n M-Right select-pane -R
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
bind-key -n MouseDown2Pane \
select-pane -t= \; \
if-shell -F "#{pane_in_mode}" "send -X cancel" \; \
if-shell 'x=$(xclip -o; echo x) && tmux set-buffer -- "${x%?}"; true' \
"paste-buffer -p"
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b"
bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"