Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slow completion when using aptitude
- X-seq: zsh-workers 28654
- From: cheer_xiao <xiaqqaix@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Slow completion when using aptitude
- Date: Wed, 26 Jan 2011 13:11:40 +0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=7Qqr591A1Vfj/FKVCnR6nwmpKzjCZ4kz95EBIAEqtZc=; b=n64g4JePKqKqTmi9EakP3oX6mEAwAy0Bw3cgolgv0Si7qvQZL29snNUo7T6sulCByf 1E+e3C7v6vLp0zyYYHM+8V9TTPYp9t/U237nD9JZ18TmNdJVBCbEGW4NwAqcz67iMaDV DxMT6VQzd4m9h3yrzxxV9KGgN5t/IseQO/vQk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Rh/zrxENm6Zdil2nopMj43WxcFV0vHm+HGKfKXSzI0YaXJguaLFc3CEkCd8Yc5XjoP WbY6TV3W7BfI2q6wbRT6S/TWzO4l3AnXI3inWZyjvaADWbnpqLTmnIRF6hxScB8ShQKx gOWKi3gddJG8yW6Umyb1Nilueun7J9TLAuoDA=
- In-reply-to: <AANLkTimYBY7nA_FCXTA8n-ukYwBxnobmoUNowJ6kxaGz@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTimtzJnpA=_QQgz4bSYZEjHydCSh6PLMKzFtwueS@mail.gmail.com> <AANLkTimYBY7nA_FCXTA8n-ukYwBxnobmoUNowJ6kxaGz@mail.gmail.com>
On Wed, Jan 19, 2011 at 8:33 PM, Richard Hartmann
<richih.mailinglist@xxxxxxxxx> wrote:
> Hi,
>
> those questions might be better suited to the -users list.
>
>> And another small related issue: the command tab-completion of zsh
>> doesn't seem to know aptitude build-dep, which has been around for a
>> few years but (unfortunately) undocumented.
>
> I did not have time to check the first issue, but on zsh 4.3.10, you
> can complete to aptitude build-dep. As a general rule of thumb, please
> try to use the newest version of zsh (and starting with zsh -f where
> applicable/possible) before reporting issues. They might have been
> fixed, already.
Thanks for your attention. I posted this to zsh-workers because I
found it weird enough to be very likely a bug in source code. Could
you tell me if you are having performance problem with aptitude
tab-complete? Also, let me describe my problems in more detail.
If I type "sudo apt-get install a" and hit Tab, I only get a short
(yet noticeable) delay of about one second. But when I type "sudo
aptitude install a" and hit Tab, zsh freezes, one of the CPU cores get
100% loaded. It will recover after some 10 seconds. However after
this, the tab-completion of aptitude is as quick as apt-get's, until I
log out of zsh.
I am using the version from git repo:
xiaq@~> zsh --version
zsh 4.3.11-dev-1 (i686-pc-linux-gnu)
and my system:
xiaq@~> uname -a
Linux xxx 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 21:21:01 UTC
2011 i686 GNU/Linux
After typing "sudo aptitude" and hitting Tab, the output is (build-dep
is absent):
xiaq@~> sudo aptitude
autoclean -- erase old downloaded package files
changelog -- view a package's changelog
clean -- erase downloaded package files
download -- download the .deb file for a package
forbid-version -- forbid aptitude from upgrading to a
specific package ve
forget-new -- forget what packages are "new"
full-upgrade -- perform an upgrade, possibly installing
and removing pa
hold -- place packages on hold
install -- install/upgrade packages
markauto -- mark packages as having been
automatically installed
purge -- remove packages and their configuration files
reinstall -- download and (possibly) reinstall a
currently installed
remove -- remove packages
safe-upgrade -- perform a safe upgrade
search -- search for a package by name and/or expression
show -- display detailed information about a package
unhold -- cancel a hold command for a package
unmarkauto -- mark packages as having been manually installed
update -- download lists of new/upgradable packages
why -- show the manually installed packages that
require a pac
why-not -- show the manually installed packages that
lead to a con
Messages sorted by:
Reverse Date,
Date,
Thread,
Author