summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2014-12-02 23:19:45 +0000
committernicm <nicm>2014-12-02 23:19:45 +0000
commit575fd1e322b15a3e9f0d1892ebb82c2e8a30ba46 (patch)
treef60aff5db52f284b82420cb195f0ce6cb66ea9da /tmux.1
parente52d7912122177ddff952feccc192a3f357b9d1b (diff)
Permit option values to be used in formats.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.121
1 files changed, 17 insertions, 4 deletions
diff --git a/tmux.1 b/tmux.1
index 0ff611d0..949a77b0 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3039,12 +3039,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
@@ -3055,7 +3060,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 = ,