-
Notifications
You must be signed in to change notification settings - Fork 3
/
dot.tmux.conf
91 lines (71 loc) · 2.16 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# tmux.conf
unbind-key C-b
set-option -g prefix C-t
bind-key C-t last-window
bind-key t send-prefix
set-option -g default-shell "${SHELL}"
set-option -g default-command "${SHELL}"
set-option -g default-terminal screen-256color
set-option -ga terminal-overrides ",$TERM:Tc"
# No delay for escape or ^[ key press
set-option -s escape-time 0
set-option -g history-limit 50000
set-window-option -g mode-keys vi
#status line
# o0th/tmux-nova
# https://github.com/o0th/tmux-nova
set-option -g @nova-segment-mode "#{?client_prefix,T, }"
set-option -g @nova-segment-title "#T"
set-option -g @nova-segments-0-left "mode"
set-option -g @nova-segments-0-right "title"
set-option -g @nova-pane "#I:#W"
bind-key r source-file ~/.tmux.conf
bind-key C-r source-file ~/.tmux.conf
bind-key C-c new-window
bind-key C-d detach-client
bind-key C-n next-window
bind-key C-p previous-window
bind-key C-q display-panes
bind-key C-s choose-tree
bind-key C-w choose-window
bind-key C-: command-prompt
bind-key C-[ copy-mode
bind-key C-] paste-buffer
# select 0
bind-key i select-window -t :0
bind-key C-i select-window -t :0
# pane
bind-key o last-pane
bind-key C-o last-pane
bind-key h select-pane -L
bind-key C-h select-pane -L
bind-key j select-pane -D
bind-key C-j select-pane -D
bind-key k select-pane -U
bind-key C-k select-pane -U
bind-key l select-pane -R
bind-key C-l select-pane -R
bind-key -r H resize-pane -L 1
bind-key -r J resize-pane -D 1
bind-key -r K resize-pane -U 1
bind-key -r L resize-pane -R 1
unbind-key %
bind-key % split-window -h -c "#{pane_current_path}"
unbind-key '"'
bind-key '"' split-window -v -c "#{pane_current_path}"
# copy mode
bind-key -T copy-mode-vi J send-keys -X halfpage-down
bind-key -T copy-mode-vi K send-keys -X halfpage-up
# tpm(Tmux Plugin Manager) #{{{1
# https://github.com/tmux-plugins/tpm
#
# install tpm
# % git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# install tmp plugins
# hit prefix I in tmux
set-option -g @plugin "tmux-plugins/tpm"
set-option -g @plugin "tmux-plugins/tmux-resurrect"
# https://github.com/o0th/tmux-nova
set-option -g @plugin "o0th/tmux-nova"
run-shell "~/.tmux/plugins/tpm/tpm"
# vim:set ft=conf foldmethod=marker: