-
Notifications
You must be signed in to change notification settings - Fork 3
/
dot_tmux.conf
73 lines (61 loc) · 1.73 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# globals {{{1
unbind C-b
set -g prefix C-t
bind C-t send-prefix
set -g default-terminal tmux-256color
set -g base-index 1
set -g history-limit 10000
set -g display-time 3000
set -g status-interval 1
set -g status-right "%Y/%m/%d %H:%M:%S"
setw -g mode-keys vi
setw -g automatic-rename on
set -s copy-command 'xsel -i'
set -g escape-time 10
set -g focus-events on
# mouse {{{1
set -g mouse off
#bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
#bind -n WheelDownPane select-pane -t= \; send-keys -M
# colors {{{1
set -g status-style bg="#202020",fg="white","default"
setw -g window-status-current-style bg="#202020",fg="red","bold"
set -g message-style bg="#202020",fg="white","default"
set -g pane-border-style bg="default",fg="#404040"
set -g pane-active-border-style bg="default",fg="#808080"
# windows {{{1
# new/close
bind n new-window
bind C-n new-window
bind c kill-window
# move
bind h previous-window
bind -r C-h previous-window
bind l next-window
bind -r C-l next-window
bind C-t last-window
# panes {{{1
# split
bind s split-window -v
bind -r C-s split-window -v
bind v split-window -h
bind -r C-v split-window -h
# close/break
bind x kill-pane
bind o break-pane
# move
bind -r H select-pane -L
bind -r J select-pane -D
bind -r K select-pane -U
bind -r L select-pane -R
# resize
bind -r < resize-pane -L 6
bind -r > resize-pane -R 6
bind -r - resize-pane -D 6
bind -r + resize-pane -U 6
# others {{{1
#bind p paste-buffer
bind-key -Tcopy-mode-vi 'v' send -X begin-selection
bind-key -Tcopy-mode-vi 'y' send -X copy-pipe-and-cancel "xsel -i"
bind-key -Tcopy-mode-vi Escape send -X cancel
bind-key -Tcopy-mode-vi V send -X rectangle-toggle