Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Please make "apt install <tab>" completion work on "local" .deb files
- X-seq: zsh-workers 42489
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Chris Lamb <lamby@xxxxxxxxxx>
- Subject: Re: Please make "apt install <tab>" completion work on "local" .deb files
- Date: Thu, 22 Mar 2018 01:09:40 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1521677390; bh=HUpiEfEsc4LamnjECZEL+7mKMNnoccXFwWQ24V9oAbs=; h=From:References:To:Subject:Date:From:Subject; b=dgmwjbGrgncrwp83MsBM9iqntUqBiQjmXlN1ydxbnBlokgHOOa5+UuI95rjlGSwiy7qW9n1jJlSXI0a2pw9yEKYxWt3OQLAl9DhJG7SsstlLA/P7jDN4m+GqYpgdpsZiGSawXZn47bXCOu+TqtIxwB+xsj6rXbuKjJY58+jyVeYRXwhS56boSehr6bXenNiyQlCSEa+romOor3+zT+VjLNAX3JixPTz7k1hXHyZEI/Xz+q66jZQeCU6Ny56FUnxtWPn3yWBObohvJ97rcebjJxFAEIp85NpzDkBuvhAinT6uRIoDQ4RLL1KMUNu6UV0ZOsyI/2z/f2UTSfPZUzYQOQ==
- In-reply-to: <1519750495.1943824.1285291424.7F4B6205@webmail.messagingengine.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: <1519750495.1943824.1285291424.7F4B6205@webmail.messagingengine.com>
On 27 Feb, Chris Lamb wrote:
>
> Please make "apt install <tab>" completion work on local .deb
> files. For example, given a "foo_1.0_amd64.deb" in the current
> directory:
>
> $ sudo apt install ./f<TAB>
>
> … should expand to:
>
> $ sudo apt install ./foo_1.0_amd64.deb
Is the same applicable to apt download, source and build-dep also?
Or just some subset of those?
I see it is possible to have arguments like zsh/unstable so this could
be tricky.
> It probably wants to be limited to .deb files so it doesn't trigger
> for the usual use-cases of installing packages from APT. Note that
> "apt install" really does need a path-ish, ie:
>
> $ apt install ./foo.deb
>
> ie. not simply doing
>
> $ apt install foo.deb
Is any path valid, just so long as it contains at least one slash? Or does
it have to be something like "./"?
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author