Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slow completion when using aptitude
On Sat, Feb 5, 2011 at 5:07 PM, cheer_xiao <xiaqqaix@xxxxxxxxx> wrote:
> [snip]
> Still, it doesn't work. The problem isn't here. When I type "sudo
> aptitude install a" and hit Tab, zsh brings up the list of *installed*
> packages instead of *uninstalled* ones - exactly the same list when I
> type "sudo aptitude remove a" and hit Tab. Perhaps something is wrong
> with _aptitude?
After examining _aptitude, I think the cause of the problem is most
likely that, _deb_packages isn't handing "_deb_packages uninstalled"
correctly. I suppose that it does update the corresponding cache by
calling "_deb_packages_update_uninstalled", but returned the wrong
"_deb_packages_cache_installed" as completion list, instead of
"..._uninstalled". I'm not familiar with zsh's completion programming
interface, but if nobody's got the time I'm willing to study it and
come up with a fix(in a few days).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author