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

Re: Slow completion when using aptitude



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
}



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