mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 21:47:01 +00:00
A couple of minor parser changes around conditions: 1) only treat #{
specially after a condition, otherwise as a comment (which is more as most people expect) 2) allow formats to be quoted after a condition.
This commit is contained in:
4
tmux.1
4
tmux.1
@ -582,9 +582,9 @@ or
|
||||
.Ql %endif .
|
||||
For example:
|
||||
.Bd -literal -offset indent
|
||||
%if #{==:#{host},myhost}
|
||||
%if "#{==:#{host},myhost}"
|
||||
set -g status-style bg=red
|
||||
%elif #{==:#{host},myotherhost}
|
||||
%elif "#{==:#{host},myotherhost}"
|
||||
set -g status-style bg=green
|
||||
%else
|
||||
set -g status-style bg=blue
|
||||
|
Reference in New Issue
Block a user