Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slow completion when using aptitude
On Feb 4, 11:48am, cheer_xiao 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*...
Sorry about the cut'n'paste error with the close paren.
As for the other part, try fgrep -xvf.
If that still doesn't work, examine each of:
print -l $_deb_packages_cache_avail
print -l $_deb_packages_cache_installed
print -l $_dep_packages_cache_uninstalled
Do they appear to contain the lists you expect?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author