From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29769 invoked by alias); 4 Dec 2012 16:26:22 -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: 17458 Received: (qmail 25173 invoked from network); 4 Dec 2012 16:26:11 -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: <121204082525.ZM22170@torch.brasslantern.com> Date: Tue, 04 Dec 2012 08:25:25 -0800 In-reply-to: <50BE1828.4060302@cs.dal.ca> Comments: In reply to Norbert Zeh "Re: Path does not update until I logout/log in" (Dec 4, 11:35am) References: <1354631592.83211.YahooMailNeo@web140005.mail.bf1.yahoo.com> <50BE1828.4060302@cs.dal.ca> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: 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, 11:35am, Norbert Zeh wrote: } } zsh uses a hash table to store the list of known commands. When you } install a new command in your path, you need to update this hashtable by } invoking "rehash". This is similar to csh, I believe (been a while } since I used this last). bash, on the other hand, does a search for } valid commands every single time. zsh provides this possibility, too, } by setting the "rehash" option, but this is disabled by default because } it incurs a speed penalty. Just to clarify, "rehash" is a zstyle (manual section for Completion System Configuration), not an option. The manual probably ought to have an example of how to set this. It may never make sense to use a context other than ":completion:*", but I'm not sure.