-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.tmux.conf
92 lines (76 loc) · 2.58 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
84
85
86
87
88
89
90
91
92
###
### window
###
set-window-option -g mode-keys emacs
set-option -g bell-action none
set-option -g history-limit 50000
set-option -g repeat-time 500
set-option -g escape-time 0
set-option -g display-time 700
###
### prefix
###
set-option -g prefix C-z
bind-key C-z send-prefix
unbind-key C-b
bind-key Z send-keys C-z
###
### bind-key
###
# window
bind-key '"' split-window -vc "#{pane_current_path}"
bind-key % split-window -hc "#{pane_current_path}"
bind-key c new-window -c "#{pane_current_path}"
bind-key C-c new-window -ac "#{pane_current_path}"
bind-key M-, command-prompt "rename-window '%%'"
bind-key C-z last-window
bind-key C-n next-window
bind-key C-p previous-window
bind-key -r F11 select-pane -m -t :-1\; swap-window\; select-window -t :-1
bind-key -r F12 select-pane -m -t :+1\; swap-window\; select-window -t :+1
bind-key -n F11 previous-window
bind-key -n F12 next-window
bind-key -T copy-mode F11 previous-window
bind-key -T copy-mode F12 next-window
# pane
bind-key -n M-Up select-pane -U
bind-key -n M-Down select-pane -D
bind-key -n M-Left select-pane -L
bind-key -n M-Right select-pane -R
bind-key -T copy-mode M-Up select-pane -U
bind-key -T copy-mode M-Down select-pane -D
bind-key -T copy-mode M-Left select-pane -L
bind-key -T copy-mode M-Right select-pane -R
bind-key j choose-window "join-pane -s '%%'"
# synchronize-panes
bind-key e command-prompt -p "synchronize-panes (on/off)" "set-window-option synchronize-panes '%%'"
# save display
bind-key S capture-pane -S -50000\; save-buffer ~/tmux.log\; delete-buffer\; run-shell "mv ~/tmux.log ~/tmux.`date +%Y%m%d-%H%M%S`.log"\; display-message "saved this pane"
# logging
bind-key H pipe-pane 'exec cat - >>~/tmux.#S.#W.#D.log'\; display-message "started logging to ~/tmux.#S.#W.#D.log"
bind-key h pipe-pane\; display-message "ended logging to ~/tmux.#S.#W.#D.log"
# print date command for backup
bind-key D send-keys "`date +%Y%m%d`"
# reload config
bind-key r source-file ~/.tmux.conf \; display-message "reloaded configuration"
###
### status
###
# status option
set-option -g status-interval 10
# status bar
set-option -g status-left '[%m/%d %H:%M] '
set-option -g status-left-length 14
set-option -g status-right ' #[bg=cyan][#S][#T]'
set-option -g status-right-length 100
# terminal title
set-option -g set-titles on
set-option -g set-titles-string '#T'
set-window-option -g allow-rename off
###
### color
###
set-option -g status-style bg=white,fg=black
set-option -g pane-active-border-style bg=white,fg=black
set-window-option -g window-status-style bg=white,fg=black
set-window-option -g window-status-current-style bg=cyan,fg=black