Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Slow completion when using aptitude
- X-seq: zsh-workers 28658
- From: cheer_xiao <xiaqqaix@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Slow completion when using aptitude
- Date: Wed, 26 Jan 2011 22:21:18 +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=ASGGCLZ4PxOFl4ebX6CBmDhjWdMBKCY8g0ky8k7KPr0=; b=n7wCAVS+M+uGRureQox69dbfuFMisYwuAb6JbPuLew/US3oVLU6ue+zpFJG+JkmN/v IUlvrQ0/M1NKeH65xjiIcKGKbXgf10uLx6ePC/8WAvL8o8QSp1aM95UicoNUY555YUld UVmimM/RJrHxJvtTuPAIXQfqQDET6iujNN11s=
- 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=r+DVX9wdNMqCUMaSAlcvpCFMxCAKVhGNlb9+RNEq+UjXcl3dozIDLfamUX2J95ertd YP1DtuYlbvM501wMnv4vS3V4PSTSvuS7TtXTZRqk/adTFvsR50vZQ431TaF8k+VaPBGN 6bw4t96oMqX18mDBk9vVleIBQ0+EkWiZy7aco=
- In-reply-to: <87oc74dpuy.fsf@ft.bewatermyfriend.org>
- 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> <AANLkTikAKmnTt+9o5ibUGevk+m=rZJg9WrxV1WP+hX6w@mail.gmail.com> <AANLkTinYiKLp11GTOKaMb_8BTPKvjP+U6won9V4BFHxk@mail.gmail.com> <87oc74dpuy.fsf@ft.bewatermyfriend.org>
On Wed, Jan 26, 2011 at 4:35 PM, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> [snip]
> _aptitude does more than _apt-get. If the second <tab> doesn't take as
> long as the first, you probably got caching enabled via zstyle.
So the problem is, as I understand, the cache for apt-get is
persistent, while that of aptitude isn't. It seems that I have done
nothing special about them, and the following is a snippet of my
.zshrc:
# The following lines were added by compinstall
zstyle ':completion:*' file-sort name
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' matcher-list 'm:{[:lower:]}={[:upper:]}'
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
zstyle ':completion:*' menu select=1
zstyle ':completion:*' select-prompt '%SScrolling active: current
selection at %p%s'
zstyle :compinstall filename '/home/xiaq/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
To make things more clear, I tried the following:
xiaq@~> zsh -f
xiaq@~> autoload -Uz compinit && compinit
to get a minimal zsh environment with tab-completion enabled. The
result is still the same.
> [snip]
> Are you sure you don't have two competing versions of zsh installed?
> Then it may be possible that "print $ZSH_VERSION" and "zsh --version"
> would yield different results.
I did install the version from Ubuntu repo, but now I have already removed it.
xiaq@~> which -a zsh
/usr/local/bin/zsh
Could you check whether "aptitude -h" on your system mentions
build-dep? That of my system (Ubuntu 10.04) doesn't; while apt-get
does:
xiaq@~> aptitude -h | grep build
[no result]
xiaq@~> apt-get | grep build
build-dep - Configure build-dependencies for source packages
I doubt whether zsh's tab-completion of aptitude's(and other
utilities') verbs works by looking at "aptitude -h" first to generate
the verbs list. If so, the problem should be considered a bug of
aptitude that ships with Ubuntu 10.04 instead of zsh. (This has been
confirmed, so this minor bug belongs to aptitude instead of zsh.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author