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
- X-seq: zsh-workers 44577
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug
- Date: Wed, 24 Jul 2019 17:39:52 +0200
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=EagB+PCbyl2U5NEgfnxkXV5p6/tO1MP90zp8de/On08=; b=t6vc0Ff/wmtUTsPtFzkftNlhnVwSukdbTN7DsaGut+zFdgpsBbuXfQ3an20ESVFl0v VIsJXXNvrdlpUxvLtRhny63lRX8JHxh456uxylQ43XoWDDc+qwGsMCsQgYuSdIBRQZCM 5PrBx7avqcQaMZQZzymKpCooggDC9ikPTWeatG12X7v2N5VoVHjUrzVYMqq+G3Tx+oVo /27168Oqk9MqVJvQYeGoiyXxcqEOGNlF8w54alQxIR6sv2r8JR/6FXGiPtP/F8ZEKqr3 szEnoG9oXoIXUq3woELOOe2b5tlCfmJmkznmQIT3Njpyik4IJYTDvusJW4EGfS0Jr0Tl ceQA==
- In-reply-to: <1563981336.5930.16.camel@samsung.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20190724141945epcas1p30d69e2d7ba1ce29f994ff486284d4553@epcas1p3.samsung.com> <CAKc7PVCfdhuam4WPxhO2TWkpRpyHdwoCTXH=Eshdb=pGRO0TxA@mail.gmail.com> <1563978475.5930.14.camel@samsung.com> <CAKc7PVAcW8BhwGQaXYWSW-tkMx6b7LLQsJ35pjq9567NY+C=9w@mail.gmail.com> <1563981336.5930.16.camel@samsung.com>
śr., 24 lip 2019, 17:15 użytkownik Peter Stephenson <
p.stephenson@xxxxxxxxxxx> napisał:
> On Wed, 2019-07-24 at 17:02 +0200, Sebastian Gniazdowski wrote:
> > 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:
> > > > 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?
>
> Either you have a special completion, or it does default completion.
> If you don't want default completion, you need a compdef for a do-nothing
> completion function.
>
> pws
>
I don't want to change disable's completion. What I want is that:
% decl<TAB>
will not try to complete "declare".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author