From: Mark Wooding Date: Tue, 21 Apr 2020 11:54:55 +0000 (+0100) Subject: dot/shell-rc, dot/bashrc, dot/zshrc: Introduce a formal notion of hooks. X-Git-Url: https://git.distorted.org.uk/~mdw/profile/commitdiff_plain/4877b8d8f0fd312be08bf10a8ec4f2ac7b7c952b?hp=4877b8d8f0fd312be08bf10a8ec4f2ac7b7c952b dot/shell-rc, dot/bashrc, dot/zshrc: Introduce a formal notion of hooks. 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. ---