diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-13 22:48:52 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-13 22:48:52 +0000 |
commit | 5b18d37032bec29baa94581fb9ef88aa7424dc8b (patch) | |
tree | 414f10bdcfacb95d2cf4def990ff6476e50a7ce3 /sys/conf | |
parent | 0405ef85c1b54922b72b1722ee2153a521cd7f89 (diff) |
Trying to do hooks generically is way too complicated and unreliable and
confusing, particularly trying to automatically figure out what target
hooks should be using. So simplify it:
- drop before hooks entirely, they don't seem to be very useful;
- commands with special requirements now fire their own after hook (for
example, if they change session or window, or if they have -t and -s
and need to choose which one the hook uses as current target);
- commands with no special requirements can have the CMD_AFTERHOOK flag
added and they will use the -t state.
At the moment new-session, new-window, split-window fire their own hook,
and display-message uses the flag. The remaining commands still need to
be looked at.
Diffstat (limited to 'sys/conf')
0 files changed, 0 insertions, 0 deletions