From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21410 invoked from network); 8 Sep 2003 03:27:48 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 Sep 2003 03:27:48 -0000 Received: (qmail 18107 invoked by alias); 8 Sep 2003 03:27:33 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6531 Received: (qmail 18098 invoked from network); 8 Sep 2003 03:27:33 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 8 Sep 2003 03:27:33 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [199.67.51.101] by sunsite.dk (MessageWall 1.0.8) with SMTP; 8 Sep 2003 3:27:32 -0000 Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h883RS4e052051; Sun, 7 Sep 2003 22:27:28 -0500 (CDT) (envelope-from dan) Date: Sun, 7 Sep 2003 22:27:28 -0500 From: Dan Nelson To: Wayne Davison , Bart Schaefer , zsh-users@sunsite.dk Subject: Re: ~/.zshenv or ~/.zprofile Message-ID: <20030908032728.GH48339@dan.emsphone.com> References: <20030803221858.GA2720@puritan.pcp.ath.cx> <20030803223949.GA18476@binome.blorf.net> <1030804060015.ZM15706@candle.brasslantern.com> <20030907175710.GA28613@binome.blorf.net> <20030907212433.GA233@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907212433.GA233@DervishD> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i In the last episode (Sep 07), DervishD said: > * Wayne Davison dixit: > > I'd like to change the StartupFiles/zshenv file so that it doesn't > > recommend setting the "path". How about something like the > > attached patch? > > The patch and the explanations seems to be quite useful. Anyway: what > is the proper place to set up the "path"? I mean globally not > per-user (that is, not ~/.*). My global path settings are in zshenv, because that's the only one read from scripts when your original login shell wasn't zsh and from cron jobs. path=(/usr/local/bin /usr/local/sbin /usr/bin /usr/sbin /usr/opt/*/bin /usr/opt/*/sbin $path) typeset -U PATH The typeset removes duplicate entries. -- Dan Nelson dnelson@allantgroup.com