mirror of
https://github.com/tmux/tmux.git
synced 2025-09-04 06:56:58 +00:00
Merge branch 'obsd-master'
This commit is contained in:
34
tmux.1
34
tmux.1
@ -3043,12 +3043,17 @@ and
|
||||
.Ql } ,
|
||||
for example
|
||||
.Ql #{session_name} .
|
||||
Some variables also have an shorter alias such as
|
||||
.Ql #S .
|
||||
The possible variables are listed in the table below, or the name of a
|
||||
.Nm
|
||||
option may be used for an option's value.
|
||||
Some variables have a shorter alias such as
|
||||
.Ql #S ,
|
||||
and
|
||||
.Ql ##
|
||||
is replaced by a single
|
||||
.Ql # .
|
||||
Conditionals are also accepted by prefixing with
|
||||
.Pp
|
||||
Conditionals are available by prefixing with
|
||||
.Ql \&?
|
||||
and separating two alternatives with a comma;
|
||||
if the specified variable exists and is not zero, the first alternative
|
||||
@ -3059,7 +3064,15 @@ will include the string
|
||||
.Ql attached
|
||||
if the session is attached and the string
|
||||
.Ql not attached
|
||||
if it is unattached.
|
||||
if it is unattached, or
|
||||
.Ql #{?automatic-rename,yes,no}
|
||||
will include
|
||||
.Ql yes
|
||||
if
|
||||
.Ic automatic-rename
|
||||
is enabled, or
|
||||
.Ql no
|
||||
if not.
|
||||
A limit may be placed on the length of the resultant string by prefixing it
|
||||
by an
|
||||
.Ql = ,
|
||||
@ -3581,7 +3594,7 @@ Miscellaneous commands are as follows:
|
||||
.It Ic clock-mode Op Fl t Ar target-pane
|
||||
Display a large clock.
|
||||
.It Xo Ic if-shell
|
||||
.Op Fl b
|
||||
.Op Fl bF
|
||||
.Op Fl t Ar target-pane
|
||||
.Ar shell-command command
|
||||
.Op Ar command
|
||||
@ -3594,7 +3607,9 @@ if
|
||||
returns success or the second
|
||||
.Ar command
|
||||
otherwise.
|
||||
Before being executed, shell-command is expanded using the rules specified in the
|
||||
Before being executed,
|
||||
.Ar shell-command
|
||||
is expanded using the rules specified in the
|
||||
.Sx FORMATS
|
||||
section, including those relevant to
|
||||
.Ar target-pane .
|
||||
@ -3602,6 +3617,13 @@ With
|
||||
.Fl b ,
|
||||
.Ar shell-command
|
||||
is run in the background.
|
||||
.Pp
|
||||
If
|
||||
.Fl F
|
||||
is given,
|
||||
.Ar shell-command
|
||||
is not executed but considered success if neither empty nor zero (after formats
|
||||
are expanded).
|
||||
.It Ic lock-server
|
||||
.D1 (alias: Ic lock )
|
||||
Lock each client individually by running the command specified by the
|
||||
|
Reference in New Issue
Block a user