2007-09-20 20:48:04 +02:00
|
|
|
Command prefix is C-b. This can be changed by building with, for example:
|
|
|
|
|
2007-10-01 20:05:34 +02:00
|
|
|
META='\001' make
|
2007-07-09 21:04:12 +02:00
|
|
|
|
2007-10-01 20:34:37 +02:00
|
|
|
Key bindings:
|
2007-10-01 20:05:34 +02:00
|
|
|
d detach
|
|
|
|
c create new window
|
|
|
|
n next window
|
|
|
|
p previous window
|
|
|
|
l last (next to last selected) window
|
2007-10-06 12:00:42 +02:00
|
|
|
? list current key bindings
|
2007-10-01 20:05:34 +02:00
|
|
|
0-9 select window
|
2007-07-09 21:04:12 +02:00
|
|
|
|
|
|
|
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
|
2007-08-27 15:45:26 +02:00
|
|
|
sessions.
|
|
|
|
|
2007-10-06 12:02:36 +02:00
|
|
|
Syntax is: tmux [-v] [-S path] [-s session] command [flags]
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-01 20:05:34 +02:00
|
|
|
-v Create logfiles, verbosity increases with more -v
|
|
|
|
-S Set different server socket path
|
2007-10-06 12:00:42 +02:00
|
|
|
-s Specify session name for command, if appropriate.
|
|
|
|
|
|
|
|
If a session name is not given, the current session is assumed if a command
|
|
|
|
is run from inside tmux and the TMUX environment variable is available,
|
|
|
|
otherwise if only one exists, it is used or if multiple exist, an error is
|
|
|
|
generated.
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-01 20:05:34 +02:00
|
|
|
Commands:
|
2007-10-01 20:34:37 +02:00
|
|
|
(Commands can be shortened, as long as they are unambiguous)
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
new-session [-d] [-s session name] [-n window name] [command]
|
2007-10-01 20:05:34 +02:00
|
|
|
Create new session. Attaches to new session unless -d is given.
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
attach-session [-d]
|
|
|
|
Attach to session. Detaches other clients if -d is given.
|
2007-08-27 17:28:07 +02:00
|
|
|
|
2007-10-01 20:05:34 +02:00
|
|
|
list-sessions
|
|
|
|
List sessions (can be shortened to ls).
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
list-windows
|
2007-10-01 20:05:34 +02:00
|
|
|
List windows (can be shortened to lsw).
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
rename-window [-i <window index>] new name
|
2007-10-01 20:05:34 +02:00
|
|
|
Rename window.
|
2007-08-27 15:45:26 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
bind-key key command
|
|
|
|
Bind a key to a command (use ^A for ctrl-A), commands are as listed
|
|
|
|
above.
|
2007-10-01 20:34:37 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
list-keys
|
|
|
|
List current key bindings.
|
2007-07-09 21:04:12 +02:00
|
|
|
|
2007-10-06 12:00:42 +02:00
|
|
|
unbind-key key
|
|
|
|
Unbind a key from a command.
|
|
|
|
|
|
|
|
set-option prefix key
|
|
|
|
Set command prefix (meta) key.
|
|
|
|
|
|
|
|
Sessions are destroyed when no windows remain attached to them.
|
2007-10-06 12:02:36 +02:00
|
|
|
|
|
|
|
Status bar colour is currently fixed, it can be changed by changing the
|
|
|
|
last argument of line 38 in status.c:
|
|
|
|
|
|
|
|
input_store_two(b, CODE_ATTRIBUTES, ATTR_REVERSE, 0x20);
|
|
|
|
|
|
|
|
0x47 is white-on-blue.
|