Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion is over thinking things.
- X-seq: zsh-users 24307
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: completion is over thinking things.
- Date: Sun, 29 Sep 2019 15:09:24 +0200
- Cc: zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=T2idiWQIrchUbJV7j5U6xgAb9MmY9bnRvS03SiSCvMg=; b=ev+XrhvyMZAQxP73029vPIjEM5pF/F0OZDzXWLOX0MbXeSwpwVxEdLZsyzOfZLI82k 8DpuGNPDvsfQvUdGmSBS8TpZAUyb8vtfSN+zc1VcItqGP/RTe5O6OHbodQsWjskRkUtV AIygGlxR54lfqh4gx7AWJvhe+Uhe7+klc2+C52I27mkXfILXhdL3IL/JEib6XScE1tha dz2O55SBHR7h7HLO3pRWk/gXw+iVpi2+Li4NLfqSvDAa+zD9g9ZIo3Fj6LsO8nAuTwGa X8mNvEQb5Wlki0aypqKLBO3BMxyelNCRbbhkwxra6iQrR+xEGq//9pItN+9KOrpQPEU4 w5pw==
- In-reply-to: <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <306325bb-395d-a16b-a771-0786c23cb46e@eastlink.ca> <CAN=4vMrRO3K6S+zE-JNE4JDQrm9=Yf92mixTpmxNAZ-uGp8QnA@mail.gmail.com> <8ef96620-e762-d52c-207f-c3ac5620879f@eastlink.ca>
On 9/28/19, Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
> On 2019-09-28 10:13 a.m., Roman Perepelitsa wrote:
>> On Sat, Sep 28, 2019 at 7:06 PM Ray Andrews <rayandrews@xxxxxxxxxxx>
>> wrote:
>>> $ ls inst.deb
>>> inst.deb
>>>
>>> $ apt-get install inst. [TAB]
>>> Completing package
>>> libapt-inst2.0
>>> libmono-system-configuration-install4.0-cil
>>> libmono-system-runtime-durableinstancing4.0-cil
>>>
>>> How can I get completion to stop looking and finding files God knows
>>> where and just expand filenames in the current directory?
>> This doesn't answer your question but `apt-get install inst.deb` won't
>> install ./inst.deb. Instead, it'll install all packages that partially
>> match regex `inst.deb`.
> Yeah thanks, I remembered that just after posting. But my issue
> remains, I almost always want completion to stop trying to be clever
> and just give me local file completions.
>
> and:
>
> Installing packages from local .deb files is not the task for apt-get.
> You should use `dpkg -i` instead.
>
> Actually I know, but I just wanted to demonstrate the issue with completion
> and that showed the issue.
Claiming that completion not completing invalid arguments for your
command is an "issue" seems pretty far fetched to me. If you always
want to complete files, don't run compinit in your startup files.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author