aboutsummaryrefslogtreecommitdiff
path: root/NOTES
blob: ffdc6dcb6fa20a32d7f7832ab57c096f2d75ded8 (plain) (blame)
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
Command prefix is C-b.

Commands: d detach
          c create new terminal
          n next terminal
          p previous terminal
	  r refresh screen
 	  t set window name
	0-9 select window

There is one default server process per user which puts its socket in
/tmp/tmux-UID. It is created the first time tmux is run and subsequent
invocations will connect to the same server. The server holds multiple
sessions.

Syntax is: tmux [-v] [-n name] [-s path] command

The command is either list, new or attach. Create a new session with:

	tmux new

Optionally giving it a name with:

	tmux -n <session name> new

Attach to a previous session with:

	tmux -n <session name> attach

A name must (currently) be specified when attaching. This may change.

List all sessions with:

	tmux list

Or the windows of a single session with:

	tmux -n <session name> list

Sessions are destroyed when no windows remain attached to them.

Another server process can be used by specifying an alternative socket path
with "-s <path>" but it shouldn't normally be required.

You can set the window title (listed in -l), using the \e] escape sequence. For
example:

	$ echo -n \\033]0;My Title\\007

There is currently no method for setting the window name (what will eventually
be shown in the status bar).

You might get message "couldn't find server" after a crash, in this case you
must remove the /tmp/tmux-`id -u` file manually.