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

Re: Slow completion when using aptitude



On Fri, Feb 4, 2011 at 11:04 PM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Feb 4,  1:46pm, cheer_xiao wrote:
> }
> } is "dep_packages_cache_uninstalled" a typo?
>
> Yes.
>
> I don't actually have apt installed anywhere, so I can't test whether
> the output of these functions are correct.  Let's try this again -- I
> *believe* I've nixed all the typos but proofread before deployment:
>
> _deb_packages_update_uninstalled () {
>  _deb_packages_update_avail
>  _deb_packages_update_installed
>  if (( ! $+_deb_packages_cache_uninstalled )); then
>    # Package lists too large to efficiently diff with zsh expansion
>    _deb_packages_cache_uninstalled=(
>      $( print -l $_deb_packages_cache_avail |
>         fgrep -xvf =(print -l $_deb_packages_cache_installed) )
>    )
>  fi
> }

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?



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