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 Wed, 24 Jul 2019 at 16:28, Peter Stephenson <p.stephenson@xxxxxxxxxxx> wrote:
>
> On Wed, 2019-07-24 at 16:18 +0200, Sebastian Gniazdowski wrote:
> > Hello,
> > I would like to disable the completion for the declare builtin. How to
> > accomplish this?
>
> unset '_comps[declare]'

Actually that's not what I've meant. I've should have put this more
clearly: how to prevent command `declare' from being completed? Like
if chmod -x /usr/bin/declare?

-- 
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