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:44 AM, cheer_xiao <xiaqqaix@xxxxxxxxx> wrote:
>> Try the other way I suggested:
>>
>> _deb_packages_update_uninstalled () {
>>  _deb_packages_update_avail
>>  _deb_packages_update_installed
>>  if (( ! $+_deb_packages_cache_uninstalled )); then
>>    _dep_packages_cache_uninstalled=(
>>      $( print -l $_deb_packages_cache_avail |
>>         fgrep -vf =(print -l $_deb_packages_cache_installed)
>
> Seems you have missed a closing parenthesis at the end of line.
>
>>    )
>>  fi
>> }
>>
>
> It's a wonderful fix. zsh now respond within 2 seconds. Thanks a lot!
> I wish to see the fix committed into the source repo ASAP. Also the
> completion for apt-get should behave the same.

No... It didn't really work; the completion list was very, very
incomplete. "sudo aptitude install a<Tab>" now brings up a list of
packages current *installed* instead *available*...



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