From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23250 invoked by alias); 4 Dec 2012 20:11:00 -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: 17460 Received: (qmail 11045 invoked from network); 4 Dec 2012 20:10:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <121204121044.ZM22391@torch.brasslantern.com> Date: Tue, 04 Dec 2012 12:10:44 -0800 In-reply-to: <1354645648.27886.YahooMailNeo@web140003.mail.bf1.yahoo.com> Comments: In reply to John "Re: Path does not update until I logout/log in" (Dec 4, 10:27am) References: <1354631592.83211.YahooMailNeo@web140005.mail.bf1.yahoo.com> <20121204153753.GG19774@Hailey> <1354645648.27886.YahooMailNeo@web140003.mail.bf1.yahoo.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: John , Daniel Wallace , "zsh-users@zsh.org " Subject: Re: Path does not update until I logout/log in MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 4, 10:27am, John wrote: } } > zstyle ':completion:::::' completer _force_rehash _complete _approximate } } Thank you all for the replies and especially to Daniel for the above } which is working for me. One more clarification -- this: zstyle ':completion:*' rehash yes accomplishes the same thing as Daniel's _force_rehash, without requiring that you add a new function to your completer zstyle. I suppose there might be some middling-old versions of zsh that don't support the rehash style, in which case Daniel's solution would be a good workaround.