diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-10-11 08:03:55 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2017-10-11 08:03:55 +0100 |
commit | 60074a6bc6284e841d9ddcf8bfd99b362baf4e4f (patch) | |
tree | 09db3e0bd29243530a8ea0b1b65dbd617a1f9745 /tmux.1 | |
parent | a3967de9a58f1773b8ca01a1f98fcafb86b73ac1 (diff) | |
parent | 044019d9d670aee86147c51dc74f287e7bebfaab (diff) | |
download | rtmux-60074a6bc6284e841d9ddcf8bfd99b362baf4e4f.tar.gz rtmux-60074a6bc6284e841d9ddcf8bfd99b362baf4e4f.tar.bz2 rtmux-60074a6bc6284e841d9ddcf8bfd99b362baf4e4f.zip |
Merge branch 'master' of github.com:tmux/tmux
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 27 |
1 files changed, 21 insertions, 6 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 @@ -3638,7 +3653,7 @@ The following variables are available, where appropriate: .It Li "cursor_y" Ta "" Ta "Cursor Y position in pane" .It Li "history_bytes" Ta "" Ta "Number of bytes in window history" .It Li "history_limit" Ta "" Ta "Maximum window history lines" -.It Li "history_size" Ta "" Ta "Size of history in bytes" +.It Li "history_size" Ta "" Ta "Size of history in lines" .It Li "hook" Ta "" Ta "Name of running hook, if any" .It Li "hook_pane" Ta "" Ta "ID of pane where hook was run, if any" .It Li "hook_session" Ta "" Ta "ID of session where hook was run, if any" |