From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17941 invoked by alias); 14 Aug 2011 14:55:14 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16214 Received: (qmail 6216 invoked from network); 14 Aug 2011 14:55:03 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_MED,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.1 Received-SPF: neutral (ns1.primenet.com.au: 128.2.11.61 is neither permitted nor denied by SPF record at _spf.google.com) Date: Sun, 14 Aug 2011 10:46:35 -0400 From: Gautam Iyer To: zsh-users@zsh.org Subject: Re: Rehash after installs Message-ID: <20110814144635.GC3824@andrew.cmu.edu> References: <20110813070535.GA10909@soljaris7.fritz.box> <20110814040306.GC32168@andrew.cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.3.18.170322 X-SMTP-Spam-Clean: 33% ( RDNS_SUSP_FORGED_FROM 3.5, FORGED_FROM_GMAIL 0.1, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, BODY_SIZE_900_999 0, RDNS_BROADBAND 0, RDNS_GENERIC_POOLED 0, RDNS_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, RDNS_SUSP_SPECIFIC 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __C230066_P5 0, __CD 0, __CT 0, __CT_TEXT_PLAIN 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __FROM_GMAIL 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_BROADBAND_5 0, __RDNS_POOLED_11 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __USER_AGENT 0) X-SMTP-Spam-Score: 33% X-Scanned-By: MIMEDefang 2.60 on 128.2.11.61 On Sun, Aug 14, 2011 at 06:37:52AM +0200, Mikael Magnusson wrote: >> Another (perhaps nicer) solution would be to "rehash" if command >> completion failed, and then retry completion after that. >> >> This way even with a GUI installation program you'll get current >> completion info. I've no idea how to implement it though; so if someone >> does it (or has already done it), please let me know. > > You mean something like > zstyle ':completion:*' rehash true Indeed! Thanks for telling me about this. The man page however seems to say that a rehash is issued on *every* external command completion request. Is it possible to rehash only on every *failed* external command completion request. I guess it doesn't really matter so much as I can't (yet) notice too much of a performance penalty. Thanks, GI -- Top Ten New Intel Slogans For The Pentium: 3.9998245917 Division Considered Harmful