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

Re: detect if command has a completion function





>On Saturday, August 29, 2020, 06:21:21 PM GMT+1, Marc Cornellà <marc.cornella@xxxxxxxx> wrote:
>
>You can use the `$_comps` array which controls which completion
>function is assigned to a command.
>For example, the completion function for `ls` is `_ls`:
>
>  $ echo $_comps[ls]
>
>  _ls

Perfect, thankyou!




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