-
Notifications
You must be signed in to change notification settings - Fork 76
/
.tmux.conf
150 lines (129 loc) · 4.72 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
set-option -g history-limit 100000
set -g prefix C-z
unbind C-b
bind C-z last-window
bind z send-prefix
## make key binding like screen, got it from google (part of tmux
## project)
# lockscreen ^X x
unbind ^X
bind ^X lock-server
unbind x
bind x lock-server
# screen ^C c
unbind ^C
bind ^C new-window
unbind c
bind c new-window
# detach ^D d
unbind ^D
bind ^D detach
# displays *
unbind *
bind * list-clients
# next ^@ ^N sp n
unbind ^@
bind ^@ last-window
unbind ^N
bind ^N next-window
unbind " "
bind " " next-window
unbind n
bind n next-window
# title A
unbind A
bind A command-prompt "rename-window %%"
# other ^A
unbind ^A
bind ^A last-window
# prev ^H ^P p ^?
unbind ^H
bind ^H previous-window
unbind ^P
bind ^P previous-window
unbind p
bind p previous-window
unbind BSpace
bind BSpace previous-window
# windows ^W w
unbind ^W
bind ^W list-windows
unbind w
bind w list-windows
# quit \
unbind \
bind \ confirm-before "kill-server"
# kill K k
unbind K
bind K confirm-before "kill-window"
unbind k
bind k confirm-before "kill-window"
# redisplay ^L l
unbind ^L
bind ^L refresh-client
unbind l
bind l refresh-client
# split -v |
unbind |
bind | split-window
# :kB: focus up
unbind Tab
bind Tab select-pane -t:.+
unbind BTab
bind BTab select-pane -t:.-
# " windowlist -b
unbind '"'
bind '"' choose-window -F \#W
unbind Escape
bind Escape copy-mode
bind M-Escape copy-mode
bind M-PageUp copy-mode -u
bind-key -T copy-mode-escape-keys w send-keys -X copy-selection\; save-buffer /tmp/screen-exchange\; run 'cat /tmp/screen-exchange |putclip'
bind-key -T copy-mode Escape switch-client -T copy-mode-escape-keys\; display-message "Type the next key for M-"
bind-key -T copy-mode ? command-prompt -p "search up" "send -X search-backward \"%%%\""
bind-key -T copy-mode / command-prompt -p "search down" "send -X search-forward \"%%%\""
bind-key M-C-Space copy-mode \; send-keys -X begin-selection
bind-key M-C-a copy-mode \; send-keys -X start-of-line
bind-key M-C-b copy-mode \; send-keys -X cursor-left
bind-key M-C-c copy-mode \; send-keys -X cancel
bind-key M-C-e copy-mode \; send-keys -X end-of-line
bind-key M-C-f copy-mode \; send-keys -X cursor-right
bind-key M-C-g copy-mode \; send-keys -X clear-selection
bind-key M-C-k copy-mode \; send-keys -X copy-end-of-line
bind-key M-C-n copy-mode \; send-keys -X cursor-down
bind-key M-C-p copy-mode \; send-keys -X cursor-up
bind-key M-C-r copy-mode \; command-prompt -i -p "search up" "send -X search-backward-incremental \"%%%\""
bind-key M-C-s copy-mode \; command-prompt -i -p "search down" "send -X search-forward-incremental \"%%%\""
bind-key M-C-v copy-mode \; send-keys -X page-down
bind-key M-C-w copy-mode \; send-keys -X copy-selection-and-cancel
bind-key M-Space copy-mode \; send-keys -X page-down
bind-key M-, copy-mode \; send-keys -X jump-reverse
bind-key M-/ copy-mode \; command-prompt -p "search down" "send -X search-forward \"%%%\""
bind-key M-\; copy-mode \; send-keys -X jump-again
bind-key M-? copy-mode \; command-prompt -p "search up" "send -X search-backward \"%%%\""
bind-key M-F copy-mode \; command-prompt -1 -p "jump backward" "send -X jump-backward \"%%%\""
bind-key M-N copy-mode \; send-keys -X search-reverse
bind-key M-R copy-mode \; send-keys -X rectangle-toggle
bind-key M-T copy-mode \; command-prompt -1 -p "jump to backward" "send -X jump-to-backward \"%%%\""
bind-key M-f copy-mode \; command-prompt -1 -p "jump forward" "send -X jump-forward \"%%%\""
bind-key M-g copy-mode \; command-prompt -p "goto line" "send -X goto-line \"%%%\""
bind-key M-n copy-mode \; send-keys -X search-again
bind-key M-q copy-mode \; send-keys -X cancel
bind-key M-t copy-mode \; command-prompt -1 -p "jump to forward" "send -X jump-to-forward \"%%%\""
bind-key M-MouseDown1Pane copy-mode \; select-pane
bind-key M-MouseDrag1Pane copy-mode \; select-pane \; send-keys -X begin-selection
bind-key M-MouseDragEnd1Pane copy-mode \; send-keys -X copy-selection-and-cancel
bind-key M-WheelUpPane copy-mode \; select-pane \; send-keys -X -N 5 scroll-up
bind-key M-WheelDownPane copy-mode \; select-pane \; send-keys -X -N 5 scroll-down
bind-key M-DoubleClick1Pane copy-mode \; select-pane \; send-keys -X select-word
bind-key M-TripleClick1Pane copy-mode \; select-pane \; send-keys -X select-line
bind-key M-Home copy-mode \; send-keys -X start-of-line
bind-key M-End copy-mode \; send-keys -X end-of-line
bind-key M-NPage copy-mode \; send-keys -X page-down
bind-key M-PPage copy-mode \; send-keys -X page-up
bind-key M-Up copy-mode \; send-keys -X cursor-up
bind-key M-Down copy-mode \; send-keys -X cursor-down
bind-key M-Left copy-mode \; send-keys -X cursor-left
bind-key M-Right copy-mode \; send-keys -X cursor-right
bind-key M-C-Up copy-mode \; send-keys -X scroll-up
bind-key M-C-Down copy-mode \; send-keys -X scroll-down