dot/shell-rc, dot/bashrc, dot/zshrc: Introduce a formal notion of hooks.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:54:55 +0000 (12:54 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Apr 2020 11:54:55 +0000 (12:54 +0100)
Replace the `__mdw_precmd' and `__mdw_preexec' functions with hooks.
Each shell implementation is responsible for calling the hooks at the
right time, but the common core is responsible for maintaining the hooks
and doing the job of invoking the hook functions.

Use this machinery for the prompt setting and `screen' status things.


No differences found