Zsh Mailing List Archive
Messages sorted by:
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: <firstname.lastname@example.org>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- List-unsubscribe: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <firstname.lastname@example.org> <CAN=4vMrRO3K6S+zE-JNE4JDQrm9=Yf92mixTpmxNAZ-uGp8QnA@mail.gmail.com> <email@example.com>
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>
>>> $ ls inst.deb
>>> $ apt-get install inst. [TAB]
>>> Completing package
>>> 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.
> 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.
Messages sorted by: