version 1.603, 2018/07/04 12:25:26 |
version 1.604, 2018/07/04 12:30:52 |
|
|
Hooks are managed with these commands: |
Hooks are managed with these commands: |
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Xo Ic set-hook |
.It Xo Ic set-hook |
.Op Fl gu |
.Op Fl gRu |
.Op Fl t Ar target-session |
.Op Fl t Ar target-session |
.Ar hook-name |
.Ar hook-name |
.Ar command |
.Ar command |
.Xc |
.Xc |
Sets (or with |
Without |
|
.Fl R, |
|
sets (or with |
.Fl u |
.Fl u |
unsets) hook |
unsets) hook |
.Ar hook-name |
.Ar hook-name |
|
|
with |
with |
.Fl t ) . |
.Fl t ) . |
Like options, session hooks inherit from the global ones. |
Like options, session hooks inherit from the global ones. |
|
.Pp |
|
With |
|
.Fl R , |
|
run |
|
.Ar hook-name |
|
immediately. |
.It Xo Ic show-hooks |
.It Xo Ic show-hooks |
.Op Fl g |
.Op Fl g |
.Op Fl t Ar target-session |
.Op Fl t Ar target-session |