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 42498
- From: Chris Lamb <lamby@xxxxxxxxxx>
- To: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- Subject: Re: Please make "apt install <tab>" completion work on "local" .deb files
- Date: Thu, 22 Mar 2018 15:34:02 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=wz+9Mq R3XtsIyWfDOTCXwaul1k/YsQxCwFemVvkw97M=; b=gL+6ca7ZyzAVVBbhJWM9IV SO9xIWBRospvx0Wmyk1eSCHnOcnZ/Mc64R7aEwURIGxn247sMKZ/HsDLTybRpaAw TLgP0BXiAUSYHPyRtePZ28VtfX+baGbfqZE+4Xau1qz6jhfgzcn29Ulh0Hg1JCGC uByjiFvH8FYXjx4dIFtIZbjZEScDBSJ/PrP5TfluWtUN458zohKZJEeHR69XxGhb OZIU+7S+MmHWqCc2nXgGJxihBJ14YrckSTBFGgF1V4bRWTTmtWeMe54N/deou6jt oyI93HfIak9QbOY2L8lenvSyAWelc1FB8K6fCD4Ntmr96B/QOnV4T3U8uY+HthxQ ==
- In-reply-to: <27489.1521711405@thecus>
- 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> <25628.1521677380@thecus> <1521677761.733146.1311682464.6E0369B0@webmail.messagingengine.com> <27489.1521711405@thecus>
Dear Oliver,
> > > Is any path valid, just so long as it contains at least one slash? Or does
> > > it have to be something like "./"?
> >
> > Has to be "./"
I misspoke here - "apt install /full/path/to/filename.deb" *also*
works and is not covered by your patch, but at least we can detect
the leading "/" or ".". Indeed, I suspect this line is the relevant
one?
+ /.\// -'[[ $subcmd = install ]]' /'[]'/ ':files:package file:_files -g
> This patch allows stuff like ./dir/zsh.deb or ./../../somewhere/zsh.deb.
> Are those valid?
(Yep.)
> Is the same feature applicable to apt-get or aptitude?
(Nope. `apt` is being a bit magic here, alas.)
.. apart from that, your patch is great and works for me :)
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby@xxxxxxxxxx / chris-lamb.co.uk
`-
Messages sorted by:
Reverse Date,
Date,
Thread,
Author