-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_tmux.conf
61 lines (48 loc) · 1.36 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
# general
set -s escape-time 0
set-option -g prefix C-q
bind-key C-q send-prefix
unbind-key C-b
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"
# mouse
set-option -g mouse on
# split
bind | split-window -hc "#{pane_current_path}"
bind - split-window -vc "#{pane_current_path}"
# status bar
set -g status-style "bg=#454b68"
set-option -g status-position top
set-option -g status-left-length 90
set-option -g status-right-length 90
set-option -g status-interval 1
set-option -g status-left '#H:[#P]'
set-option -g status-right '[%Y-%m-%d(%a) %H:%M]'
# reload .tmux.conf
bind-key r source-file ~/.tmux.conf\; display-message '[tmux] Reloaded!'
# pane
set -g pane-active-border-style fg="#454b68"
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
set-option -g base-index 1
# window
bind -n M-c new-window
bind -n M-j next-window
bind -n M-k previous-window
set-window-option -g pane-base-index 1
# session
bind -n M-C new-session
bind -n M-l switch-client -n
bind -n M-h switch-client -p
bind -n M-w choose-tree -w
# copy
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy"
bind-key p paste-buffer