version 1.682, 2019/08/16 11:49:12 |
version 1.683, 2019/09/09 07:53:19 |
|
|
.Fl P |
.Fl P |
option prints information about the new session after it has been created. |
option prints information about the new session after it has been created. |
By default, it uses the format |
By default, it uses the format |
.Ql #{session_name}: |
.Ql #{session_name}:\& |
but a different format may be specified with |
but a different format may be specified with |
.Fl F . |
.Fl F . |
.Pp |
.Pp |
|
|
if the pane title is more than five characters. |
if the pane title is more than five characters. |
.Pp |
.Pp |
Prefixing a time variable with |
Prefixing a time variable with |
.Ql t: |
.Ql t:\& |
will convert it to a string, so if |
will convert it to a string, so if |
.Ql #{window_activity} |
.Ql #{window_activity} |
gives |
gives |
|
|
gives |
gives |
.Ql Sun Oct 25 09:25:02 2015 . |
.Ql Sun Oct 25 09:25:02 2015 . |
The |
The |
.Ql b: |
.Ql b:\& |
and |
and |
.Ql d: |
.Ql d:\& |
prefixes are |
prefixes are |
.Xr basename 3 |
.Xr basename 3 |
and |
and |
.Xr dirname 3 |
.Xr dirname 3 |
of the variable respectively. |
of the variable respectively. |
.Ql q: |
.Ql q:\& |
will escape |
will escape |
.Xr sh 1 |
.Xr sh 1 |
special characters. |
special characters. |
.Ql E: |
.Ql E:\& |
will expand the format twice, for example |
will expand the format twice, for example |
.Ql #{E:status-left} |
.Ql #{E:status-left} |
is the result of expanding the content of the |
is the result of expanding the content of the |
.Ic status-left |
.Ic status-left |
option rather than the option itself. |
option rather than the option itself. |
.Ql T: |
.Ql T:\& |
is like |
is like |
.Ql E: |
.Ql E:\& |
but also expands |
but also expands |
.Xr strftime 3 |
.Xr strftime 3 |
specifiers. |
specifiers. |
.Ql S: , |
.Ql S:\& , |
.Ql W: |
.Ql W:\& |
or |
or |
.Ql P: |
.Ql P:\& |
will loop over each session, window or pane and insert the format once |
will loop over each session, window or pane and insert the format once |
for each. |
for each. |
For windows and panes, two comma-separated formats may be given: |
For windows and panes, two comma-separated formats may be given: |
|
|
.Ed |
.Ed |
.Pp |
.Pp |
A prefix of the form |
A prefix of the form |
.Ql s/foo/bar/: |
.Ql s/foo/bar/:\& |
will substitute |
will substitute |
.Ql foo |
.Ql foo |
with |
with |
|
|
The first argument may be an extended regular expression and a final argument may be |
The first argument may be an extended regular expression and a final argument may be |
.Ql i |
.Ql i |
to ignore case, for example |
to ignore case, for example |
.Ql s/a(.)/\e1x/i: |
.Ql s/a(.)/\e1x/i:\& |
would change |
would change |
.Ql abABab |
.Ql abABab |
into |
into |