-
Notifications
You must be signed in to change notification settings - Fork 1
/
.tmux.conf
83 lines (63 loc) · 2.4 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
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
73
74
75
76
77
78
79
80
81
82
83
# Prefix
set-option -g prefix C-t
unbind-key C-b
## disable ESC delay
set -s escape-time 0
# View
set -g status-interval 1
set -g status-left-length 30
set -g status-right-length 50
set -g status-bg colour248
set -g status-fg black
set -g status-left '#[fg=colour16,bold][#(whoami)@#H]#[default] '
set -g status-right '| #[fg=colour25,bold][%Y/%m/%d(%a) %H:%M:%S]#[default]'
set -g message-style fg=white,bg=black,bold
set -g pane-active-border-style fg=cyan,bg=black
set-window-option -g mode-style bg=white,fg=black
set-window-option -g window-status-style fg=black,bg=colour248
set-window-option -g window-status-current-style fg=black,bg=colour33
# Option
set-window-option -g mode-keys vi
set-window-option -g allow-rename off
set-window-option -g automatic-rename off
set-option -g history-limit 10000
set-option -g base-index 1
set-option -g pane-base-index 1
set-option -g default-terminal screen-256color
set-option -g renumber-windows on
# Enable mouse
set-option -g mouse on
bind -n WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M \; send-keys -M \; send-keys -M \; send-keys -M
bind -n WheelDownPane select-pane -t= \; send-keys -M \; send-keys -M \; send-keys -M \; send-keys -M
# KeyBindings
bind R source-file ~/.tmux.conf\; display-message "Reload Config!!"
bind 'c' new-window -c "#{pane_current_path}" \; command-prompt -p "Input window name ==>" "rename-window '%%'"
bind '"' split-window -vc "#{pane_current_path}"
bind '%' split-window -hc "#{pane_current_path}"
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r C-h select-pane -L
bind -r C-j select-pane -D
bind -r C-k select-pane -U
bind -r C-l select-pane -R
bind -r C-n next-window
bind -r C-p previous-window
bind -r N swap-window -t +1
bind -r P swap-window -t -1
bind -n M-1 select-pane -t .1
bind -n M-2 select-pane -t .2
bind -n M-3 select-pane -t .3
bind -n M-4 select-pane -t .4
bind -n M-5 select-pane -t .5
bind -n M-6 select-pane -t .6
bind -n M-7 select-pane -t .7
bind -n M-8 select-pane -t .8
bind -n M-9 select-pane -t .9
bind -n M-0 select-pane -t .10
bind l select-layout 4e9c,271x87,0,0'[271x57,0,0,162,271x29,0,58{135x29,0,58[135x14,0,58,354,135x14,0,73,406],135x29,136,58[135x14,136,58,404,135x14,136,73,405]}]'
bind K confirm-before kill-pane
bind r command-prompt "rename-window %%"
bind ' ' choose-window
bind y set-window-option synchronize-panes