forked from tomtomjhj/dots
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.s.tmux.conf
42 lines (40 loc) · 1.29 KB
/
.s.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
# NOTE: `docker run --detach-keys='ctrl-s,ctrl-q' .... tmux -2u`
# disable <C-p><C-q> proper color & unicode
set -g default-terminal "screen-256color"
set -g mouse on
set -g prefix C-s
set -g base-index 1
set -g escape-time 0
set -g status-bg white
set -g status-fg black
set -g status-left ""
set -g status-right "%H:%M"
set -g automatic-rename on
set -g set-titles on
set -g monitor-activity on
set -g history-limit 50000
set -g focus-events on
bind C-s last-window
bind c new-window -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
bind C-z resize-pane -Z
bind J resize-pane -D 5
bind K resize-pane -U 5
bind H resize-pane -L 5
bind L resize-pane -R 5
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R
# copy mode vi keymap (see list-key)
set -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
# copy to system clipboard (xclip)
bind -T copy-mode-vi y send-keys -X copy-pipe 'xclip -in -selection clipboard'
bind ] run-shell "xclip -o -selection clipboard | tmux load-buffer - ; tmux paste-buffer"
unbind -T copy-mode-vi MouseDragEnd1Pane