From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1342 invoked from network); 7 Jun 2005 15:41:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Jun 2005 15:41:18 -0000 Received: (qmail 29938 invoked from network); 7 Jun 2005 15:41:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Jun 2005 15:41:11 -0000 Received: (qmail 14777 invoked by alias); 7 Jun 2005 15:41:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8974 Received: (qmail 14767 invoked from network); 7 Jun 2005 15:41:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Jun 2005 15:41:03 -0000 Received: (qmail 28853 invoked from network); 7 Jun 2005 15:41:03 -0000 Received: from vanunu.ucsc.edu (128.114.141.22) by a.mx.sunsite.dk with SMTP; 7 Jun 2005 15:40:58 -0000 Received: from localhost (localhost [127.0.0.1]) by vanunu.ucsc.edu (Postfix) with ESMTP id 69E9E54D613; Tue, 7 Jun 2005 08:41:05 -0700 (PDT) Date: Tue, 7 Jun 2005 08:41:05 -0700 (PDT) From: William Scott X-X-Sender: wgscott@vanunu.ucsc.edu To: Chris Wong Cc: zsh-users@sunsite.dk, wgscott1@mac.com Subject: Re: Avoid LDAP hit during completion In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 One possible approach is to use a modified _users completion function. I haven't had the problem you are reporting, but I got tired of having all the fake users like www added to the completion list, so I have been using this: http://xanana.ucsc.edu/Library/init/zsh/local-functions/darwin/_users HTH, Bill On Mon, 6 Jun 2005, Chris Wong wrote: > For some reason, whenever I start a zsh shell, the first completion > will trigger many many LDAP lookup. > > % cd foo > > As soon as I hit TAB, the shell appears as frozen, but at the > background, it's hitting the LDAP server of my company network. This > will go one for a couple minutes, at least. tcpdump and top revealed > that mystery to me. > > Is there any workaround for this? I'd hate to use bash after years > of using zsh. > > Thanks for any help! > Chris > > >