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 44576
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: How to disable completion for a builtin? (actually a reserved word) + an apparent bug
- Date: Wed, 24 Jul 2019 16:15:36 +0100
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190724151539euoutp016050080b376cbbb3b022876cb21835aa~0YL3kYJCn2294722947euoutp01-
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1563981339; bh=NZKleuF11BDcNMlO+TQEwrcmS3p8mYf5ddiicJrFzSM=; h=Subject:From:To:CC:Date:In-Reply-To:References:From; b=SGd/Or7TdwQmNdLFun6ESnlNSJlNK5OUKAQlihwrXqaa9XyEWQ8ydraKhNSvErZAa ErpWY0pTuew69tjEuHejpv+gpgpcPGFtP80m6D649TZKpLotgrc4qSOOo+rOG+aT2X zLSi4U1CquXx9JWt6sF2poBwGhpxCAyQmZCiyY5k=
- In-reply-to: <CAKc7PVAcW8BhwGQaXYWSW-tkMx6b7LLQsJ35pjq9567NY+C=9w@mail.gmail.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>
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:
> > >
> > > 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?
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author