@@ -41,10 +41,9 @@ Text-based window manager
41
41
------------------- ---------------------- -------------------------------
42
42
Multiplexer Multi-tasking Multiple applications
43
43
simulataneously.
44
- Session Desktop Applications are visible here
44
+ Sessio Desktop Applications are visible here
45
45
Window Virtual Desktop or A desktop that stores it own
46
- applications
47
- screen
46
+ applications screen
48
47
Pane Application Performs operations
49
48
=================== ====================== ===============================
50
49
@@ -153,15 +152,15 @@ sandwich, and re-(attach), all applications are still running!
153
152
.. aafig ::
154
153
:textual:
155
154
156
- +--------+--------+
157
- | $ bash | $ bash |
158
- | | |
155
+ +--------+--------+
156
+ | $ bash | $ bash |
157
+ | | |
159
158
| | | /------------\
160
159
+--------+--------+ --> | detach |
161
160
| $ vim | $ bash | | 'Ctrl-b b' |
162
161
| | | \------------/
163
- | | | |
164
- +--------+--------+ |
162
+ | | | |
163
+ +--------+--------+ |
165
164
/------------------/
166
165
|
167
166
v
@@ -174,20 +173,20 @@ sandwich, and re-(attach), all applications are still running!
174
173
| |
175
174
| |
176
175
+-----------------------+
177
- v
178
- |
179
- v
180
- +-----------------------+
181
- | $ [screen detached] |
182
- | $ tmux attach |
176
+ v
177
+ |
178
+ v
179
+ +-----------------------+
180
+ | $ [screen detached] |
181
+ | $ tmux attach |
183
182
| | /------------\
184
183
| | --> | attaching |
185
184
| | \------------/
186
- | | |
187
- | | |
188
- +-----------------------+ |
189
- /
190
- /-------------------------
185
+ | | |
186
+ | | |
187
+ +-----------------------+ |
188
+ /
189
+ /---------------------------
191
190
|
192
191
v
193
192
+--------+--------+
@@ -214,12 +213,41 @@ Multitasking. Preserving the thinking you have.
214
213
215
214
.. _"train of thought" : http://en.wikipedia.org/wiki/Train_of_thought
216
215
217
- First steps with tmux
218
- =====================
216
+ Installing tmux
217
+ ---------------
218
+
219
+ Tmux is a common package / port on most Linux and BSD systems.
220
+
221
+ Instead of creating a page for how to install tmux on every distro in the
222
+ world, using google for "How to install tmux on <my distro>" may suit your
223
+ purpose as package names and directions change when distributions release
224
+ a new version.
225
+
226
+ It's best that you use the latest stable release of tmux available. This
227
+ can been seen on `tmux homepage `_.
228
+
229
+ **Mac OS X ** users may install that latest stable version of tmux through
230
+ `MacPorts `_, `fink `_ or `Homebrew `_ (aka brew).
231
+
232
+ If **compiling from source **, the dependencies are `libevent `_ and
233
+ `ncurses `_.
234
+
235
+ .. _tmux homepage : http://tmux.sourceforge.net/
236
+ .. _libevent : http://www.monkey.org/~provos/libevent/
237
+ .. _ncurses : http://invisible-island.net/ncurses/
238
+ .. _MacPorts : http://www.macports.org/
239
+ .. _Fink : http://fink.thetis.ig42.org/
240
+ .. _Homebrew : http://www.brew.sh
219
241
220
242
Start a new session
221
243
-------------------
222
244
245
+ .. code-block :: bash
246
+
247
+ $ tmux
248
+
249
+ That's all it takes to launch yourself into a tmux session.
250
+
223
251
.. tip :: Common pitfall
224
252
225
253
Running ``$ tmux list-sessions `` or any other command for listing tmux
@@ -233,6 +261,92 @@ Start a new session
233
261
this will rarely happen)
234
262
- tmux has not be launched yet at all.
235
263
264
+ Tmux hotkeys
265
+ ------------
266
+
267
+ .. note ::
268
+
269
+ The **prefix ** key is a known stumbling block for new tmux users,
270
+ please pay attention!
271
+
272
+ Tmux hot keys have to be pressed in a special way. **Read this
273
+ carefully **, then try it yourself.
274
+
275
+ First, you press the *prefix * key. This is ``C-a `` by default.
276
+
277
+ Release. Then pause. For less than second. Then type what's next.
278
+
279
+ ``C-b o `` means: Press ``Ctrl `` and ``b `` at the same time. Then
280
+ press ``o ``.
281
+
282
+
283
+ **Remember, prefix + short cut! **. ``C `` is ``Ctrl `` key.
284
+
285
+ =================== ====================================================
286
+ Short cut Action
287
+ ------------------- ----------------------------------------------------
288
+ ``C-b `` Send the prefix key (C-b) through to the
289
+ application.
290
+ ``C-o `` Rotate the panes in the current window forwards.
291
+ ``C-z `` Suspend the tmux client.
292
+ ``! `` Break the current pane out of the window.
293
+ ``" `` Split the current pane into two, top and bottom.
294
+ ``# `` List all paste buffers.
295
+ ``$ `` Rename the current session.
296
+ ``% `` Split the current pane into two, left and right.
297
+ ``& `` Kill the current window.
298
+ ``' `` Prompt for a window index to select.
299
+ ``, `` Rename the current window.
300
+ ``- `` Delete the most recently copied buffer of text.
301
+ ``. `` Prompt for an index to move the current window.
302
+ ``0 to 9 `` Select windows 0 to 9.
303
+ ``: `` Enter the tmux command prompt.
304
+ ``; `` Move to the previously active pane.
305
+ ``= `` Choose which buffer to paste interactively from a
306
+ list.
307
+ ``? `` List all key bindings.
308
+ ``D `` Choose a client to detach.
309
+ ``[ `` Enter copy mode to copy text or view the history.
310
+ ``] `` Paste the most recently copied buffer of text.
311
+ ``c `` Create a new window.
312
+ ``d `` Detach the current client.
313
+ ``f `` Prompt to search for text in open windows.
314
+ ``i `` Display some information about the current window.
315
+ ``l `` Move to the previously selected window.
316
+ ``n `` Change to the next window.
317
+ ``o `` Select the next pane in the current window.
318
+ ``p `` Change to the previous window.
319
+ ``q `` Briefly display pane indexes.
320
+ ``r `` Force redraw of the attached client.
321
+ ``s `` Select a new session for the attached client
322
+ interactively.
323
+ ``L `` Switch the attached client back to the last session.
324
+ ``t `` Show the time.
325
+ ``w `` Choose the current window interactively.
326
+ ``x `` Kill the current pane.
327
+ ``{ `` Swap the current pane with the previous pane.
328
+ ``} `` Swap the current pane with the next pane.
329
+ ``~ `` Show previous messages from tmux, if any.
330
+ ``Page Up `` Enter copy mode and scroll one page up.
331
+ ``Up, Down `` Change to the pane above, below, to the left, or to
332
+ ``Left, Right `` the right of the current pane.
333
+ ``M-1 to M-5 `` Arrange panes in one of the five preset layouts:
334
+ even-horizontal, even-vertical, main-horizontal,
335
+ main-vertical, or tiled.
336
+ ``M-n `` Move to the next window with a bell or activity
337
+ marker.
338
+ ``M-o `` Rotate the panes in the current window backwards.
339
+ ``M-p `` Move to the previous window with a bell or activity
340
+ marker.
341
+ ``C-Up, C-Down `` Resize the current pane in steps of one cell.
342
+ ``C-Left, C-Right ``
343
+
344
+ ``M-Up, M-Down `` Resize the current pane in steps of five cells.
345
+ ``M-Left, M-Right ``
346
+ =================== ====================================================
347
+
348
+ Source: tmux manpage.
349
+
236
350
License
237
351
-------
238
352
0 commit comments