diff options
author | Thomas Adam <thomas@xteddy.org> | 2017-10-06 20:01:17 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2017-10-06 20:01:17 +0100 |
commit | f069c0ba09c328fc5f9768967352366aff4bca3a (patch) | |
tree | e129d134d45831e605fb2ebc2cd263124e29427f /tmux.1 | |
parent | 2be01ab4ec95b147d4a779f72872099e5d466fde (diff) | |
parent | 9c4caf49a2e65ca03efe67332493de28c177be14 (diff) | |
download | rtmux-f069c0ba09c328fc5f9768967352366aff4bca3a.tar.gz rtmux-f069c0ba09c328fc5f9768967352366aff4bca3a.tar.bz2 rtmux-f069c0ba09c328fc5f9768967352366aff4bca3a.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 25 |
1 files changed, 20 insertions, 5 deletions
@@ -980,22 +980,37 @@ them with and .Em %endif lines. +Additional +.Em %elif +and +.Em %else +lines may also be used. The argument to .Em %if -is expanded as a format and if it evaluates to false -(zero or empty), subsequent lines are ignored until +and +.Em %elif +is expanded as a format and if it evaluates to false (zero or empty), +subsequent lines are ignored until the next +.Em %elif , +.Em %else +or .Em %endif . For example: .Bd -literal -offset indent %if #{==:#{host},myhost} set -g status-style bg=red +%elif #{==:#{host},myotherhost} +set -g status-style bg=green +%else +set -g status-style bg=blue %endif .Ed .Pp Will change the status line to red if running on -.Ql myhost . -.Em %if -may not be nested. +.Ql myhost , +green if running on +.Ql myotherhost , +or blue if running on another host. .It Ic start-server .D1 (alias: Ic start ) Start the |