Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Improved apt/dpkg completion and completion hacking questions

Clint Adams <clint@xxxxxxx> writes:

> You could use 'zstyle'.  Another thing you might consider is

I was hoping for slightly more detailed guidelines regarding zstyle
from the completion programmer's point of view...

> filing a wishlist bug on apt to add an option to spew out
> the short description after each package name when doing
> 'apt-cache --generate pkgnames'.

There would also have to be an option for generating only package
names of packages available for installation.

> Have you done any speed tests?

On a 2.8GHz P4 machine with plenty of memory and reasonably
fast/modern IO/disk apt-get install zsh<C-d> (for the first time,
i.e. when it fills the array) took about one second.  On my
memory-starved 466MHz Celeron machine it took about three seconds
if _deb_packages_update_avail had been run in another shell
recently.  If not, it took up to eight seconds (slow IO, probably
needed to swap stuff out as well).

I haven't yet figured out how to enable caching, which
_deb_packages seems to support.


Messages sorted by: Reverse Date, Date, Thread, Author