=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/tmux.1,v retrieving revision 1.520 retrieving revision 1.521 diff -c -r1.520 -r1.521 *** src/usr.bin/tmux/tmux.1 2017/01/09 21:03:25 1.520 --- src/usr.bin/tmux/tmux.1 2017/01/09 21:28:56 1.521 *************** *** 1,4 **** ! .\" $OpenBSD: tmux.1,v 1.520 2017/01/09 21:03:25 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" --- 1,4 ---- ! .\" $OpenBSD: tmux.1,v 1.521 2017/01/09 21:28:56 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott .\" *************** *** 930,935 **** --- 930,959 ---- is given, no error will be returned if .Ar path does not exist. + .Pp + Within a configuration file, commands may be made conditional by surrounding + them with + .Em %if + and + .Em %endif + lines. + The argument to + .Em %if + is expanded as a format and if it evaluates to false + .Ns ( Ql 0 + or empty), subsequent lines are ignored until + .Em %endif . + For example: + .Bd -literal -offset indent + %if #{==:#{host},myhost} + set -g status-style bg=red + %endif + .Ed + .Pp + Will change the status line to red if running on + .Ql myhost . + .Em %if + may not be nested. .It Ic start-server .D1 (alias: Ic start ) Start the