Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Global Aliases, but as a function?



On Mon, Dec 20, 2021 at 10:42 AM Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>
> One could have preexec() install wrapper functions that shadow the
> command words of any simple command that has a «--help» argument.

Yes, this is another possible approach.  Such a function would then
have to uninstall itself again ... that gets a bit messy if there
might be other wrappers.  The conditions for whether to install the
wrapper would be similar to those implied for the zle-line-finish
hook.

Personally I'm curious what the necessary command-agnostic
help-coloring pager might be.




Messages sorted by: Reverse Date, Date, Thread, Author