diff options
author | Thomas Adam <thomas@xteddy.org> | 2014-12-03 08:41:08 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2014-12-03 08:41:08 +0000 |
commit | ccbe2545d9857e03731eddb9757989b9f52dc785 (patch) | |
tree | ebe4a9fb1310635043e57e0c5586e49f3c2aade9 /tmux.1 | |
parent | 3e8efcc555a2767ff0abc121cb3232d7e84c3873 (diff) | |
parent | 54ca7b230d08aae0b2028f3f82a259963017c167 (diff) | |
download | rtmux-ccbe2545d9857e03731eddb9757989b9f52dc785.tar.gz rtmux-ccbe2545d9857e03731eddb9757989b9f52dc785.tar.bz2 rtmux-ccbe2545d9857e03731eddb9757989b9f52dc785.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 34 |
1 files changed, 28 insertions, 6 deletions
@@ -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 |