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

Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug



On Thu, 25 Jul 2019 at 02:49, Eric Cook <llua@xxxxxxx> wrote:
>
> On 7/24/19 11:39 AM, Sebastian Gniazdowski wrote:
> >
> > I don't want to change disable's completion. What I want is that:
> >
> > % decl<TAB>
> >
> > will not try to complete "declare".
> >
>
> zstyle :completion::complete:-command-::commands ignored-patterns declare

A perfect solution. I was about to double (in a plugin) the _*
function responsible for doing the commands completion and apply a
filter there, and now I don't have to.
-- 
Sebastian Gniazdowski
News: https://twitter.com/ZdharmaI
IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin
Blog: http://zdharma.org



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