From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19007 invoked from network); 4 Feb 2003 15:14:19 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 4 Feb 2003 15:14:19 -0000 Received: (qmail 11700 invoked by alias); 4 Feb 2003 15:13:56 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 5877 Received: (qmail 11692 invoked from network); 4 Feb 2003 15:13:56 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 4 Feb 2003 15:13:56 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.136.173.104] by sunsite.dk (MessageWall 1.0.8) with SMTP; 4 Feb 2003 15:13:56 -0000 Message-ID: <20030204151357.13256.qmail@web12306.mail.yahoo.com> Received: from [207.245.16.18] by web12306.mail.yahoo.com via HTTP; Tue, 04 Feb 2003 10:13:57 EST Date: Tue, 4 Feb 2003 10:13:57 -0500 (EST) From: Le Wang Subject: Re: Prompt themes To: Zsh users list In-Reply-To: <20030204143056.GF20304@io.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii --- John Buttery wrote: > * Roman Neuhauser [2003-02-04 11:45:14 +0100]: > > why don't you use FPATH=$HOME/.zsh/functions:$FPATH ? That would > > save you from the same trouble in the future when it changes. > > I know, but I like things to be explicitly set. The chi and harmony I > get internally from doing things that way outweighs the temporary > discomfort of having to update it every once in a while. :) Hi John, It really is not a good idea to "set" the FPATH in any of your init scripts, despite what your chi and harmony might lead you to believe. ;) Things will break in unpredictable ways when you upgrade or try to use your init scipts on a different machine. There is a $fpath variable, which is an array that mirrors the contents of $FPATH (e.g. when you modify one, the other will change as well). I find it easier to play with arrays, for example the following: fpath=(${LE_ETC}/shell/zsh/autoloads/interactive ${LE_ETC}/shell/zsh/completion $fpath) prepends two directories to $fpath and indirectly $FPATH. Perpend/append good; set bad. -- Le ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca