Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Multi-Minute Startup?
- X-seq: zsh-users 13109
- From: "Aaron Davies" <aaron.davies@xxxxxxxxx>
- To: "Benjamin R. Haskell" <zsh@xxxxxxxxxx>
- Subject: Re: Multi-Minute Startup?
- Date: Thu, 7 Aug 2008 16:52:11 +0800
- Cc: "Zsh Users" <zsh-users@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=6MRDTZxtUYimCJFey8UBcNGK6liXroRDm3+UEnRwsew=; b=uw969KWXqnIcysTkTCfSiKvHEZQcj9ugB1cbEHnKlvMjoUXdaebodlD/eijTLhVtdV z4jsre3lHFSrNKxFG+UElxb8oZlXpKVFaRLkeACAerQ1WgdZrr8WVfpDCT3DOoDoNpxn jVM/yAUK9DH7dPPhB+RhwsNj8ttxLru4EraaM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jjdO8UXZpl38E6MWMmOaqknMuBRIcWLE6rr4AGJo15Lm1YPzp85lkb2idgi+E6YO5S dtUUXqAs4Cp0HSVSvd1g/9QuIDY7kqx52or3JciUEn9lF/ScDs0cB4cQtyRIpPVN2vX6 cDviHGQFDxvzOkGl1IAhS5jGQlPSodqSCaOoY=
- In-reply-to: <alpine.LNX.1.10.0808070327310.26055@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <c4e763ac0808062357g44f7b75amf30db12fc1535409@xxxxxxxxxxxxxx> <alpine.LNX.1.10.0808070254580.26055@xxxxxxxxxxxxxxxxxxxxx> <c4e763ac0808070020r595f3b64u38eeefbc37bc85b6@xxxxxxxxxxxxxx> <alpine.LNX.1.10.0808070327310.26055@xxxxxxxxxxxxxxxxxxxxx>
On Thu, Aug 7, 2008 at 3:33 PM, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> Something similar came up just under a month ago on this list:
>
> ==
> Eric D. Friedman wrote:
> Subject: new-style completion and large numbers of users
>
> I'm using zsh 4.2.0 on a machine with a very large number of users. When I
> first log on and do a completion of any kind, it triggers a cache-load of
> all of the user names, which is quite time consuming. I'd like to disable
> that behavior but can't see how to do it. The archives have some ideas for
> old style completion but I didn't see anything for the new system.
> ==
>
> ==
> Angel Olivera replied:
>
> You can make zsh complete just the usernames you will be more likely to use
> with
>
> zstyle ':completion:*' users user1 user2
>
> Not specifying any users will effectively disable login name completions.
> See zshcompsys(1) for a description of this style.
> ==
>
> I forget the order of Zsh's startup files, but maybe you can slip a similar
> zstyle command into something that will run before your slow compaudit
> command that will prevent it from fetching all the groups.
According to the Files section of the manual, it goes
/etc/zshenv
~/.zshenv
/etc/zprofile
~/.zprofile
/etc/zshrc
~/.zshrc
/etc/zlogin
~/.zlogin
so presumably ~/.zshenv would work. however, putting
zstyle ':completion:*' users
zstyle ':completion:*' groups
in ~/.zshenv doesn't seem to help. Looking at compaudit itself, it
looks like it's still running "getent group".
--
Aaron Davies
aaron.davies@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author