mirror of
https://github.com/tmux/tmux.git
synced 2025-04-04 07:08:50 +00:00
Document escaping inside conditionals, from "sadie-parayno" in GitHub
issue 1359.
This commit is contained in:
parent
b9a6162d2f
commit
b602c1fb9a
15
tmux.1
15
tmux.1
@ -3574,6 +3574,21 @@ if
|
|||||||
is enabled, or
|
is enabled, or
|
||||||
.Ql no
|
.Ql no
|
||||||
if not.
|
if not.
|
||||||
|
Conditionals can be nested arbitrarily.
|
||||||
|
Inside a conditional,
|
||||||
|
.Ql \&,
|
||||||
|
and
|
||||||
|
.Ql }
|
||||||
|
must be escaped as
|
||||||
|
.Ql #,
|
||||||
|
and
|
||||||
|
.Ql #} ,
|
||||||
|
unless they are part of a
|
||||||
|
.Ql #{...}
|
||||||
|
replacement. For example:
|
||||||
|
.Bd -literal -offset indent
|
||||||
|
#{?pane_in_mode,#[fg=white#,bg=red],#[fg=red#,bg=white]}#W .
|
||||||
|
.Ed
|
||||||
.Pp
|
.Pp
|
||||||
Comparisons may be expressed by prefixing two comma-separated
|
Comparisons may be expressed by prefixing two comma-separated
|
||||||
alternatives by
|
alternatives by
|
||||||
|
Loading…
Reference in New Issue
Block a user