From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11823 invoked from network); 8 Sep 2003 22:48:43 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 8 Sep 2003 22:48:43 -0000 Received: (qmail 1269 invoked by alias); 8 Sep 2003 22:48:32 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6546 Received: (qmail 1258 invoked from network); 8 Sep 2003 22:48:32 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 8 Sep 2003 22:48:32 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [195.64.83.12] by sunsite.dk (MessageWall 1.0.8) with SMTP; 8 Sep 2003 22:48:31 -0000 Received: by timix.globnix.org with local id 19wUoA-0001Yh-00; Mon, 08 Sep 2003 22:48:30 +0000 Date: Mon, 8 Sep 2003 22:48:30 +0000 From: Phil Pennock To: zsh-users@sunsite.dk Subject: Re: ~/.zshenv or ~/.zprofile Message-ID: <20030908224830.GA21472@globnix.org> Mail-Followup-To: zsh-users@sunsite.dk 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> <20030908032728.GH48339@dan.emsphone.com> <20030908094729.GA13136@globnix.org> <20030908175556.GE28613@binome.blorf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030908175556.GE28613@binome.blorf.net> On 2003-09-08 at 10:55 -0700, Wayne Davison wrote: > Another solution for that is to use ~/.ssh/environment (as long as the > "PermitUserEnvironment yes" option is set in the sshd_config file). It > also has the benefit of working regardless of what login shell you might > have on a particular machine. Heh -- on various Solaris boxes here, my .zshenv (or system zshenv) builds $PATH at run-time, by setting $path to uniqueness and adding various globs using zsh glob modifiers. typeset -aU path typeset -x PATH path=( /foo /opt/special-priority/bin /bar /usr/*/bin(/) /opt/*/bin(/) ) I could mess around with cronjobs to keep that more up-to-date. I could do so and create a file in bourne-compatible syntax, sourced from /etc/profile. I could do many things. I keep things simple and set $path in zshenv -- it's understandable and doesn't lead to other people having to wade through docs which I've written or reverse-engineer stuff themselves. If set in /etc/zshenv then this stuff can contain some highly system-dependent locations. zsh rocks. -- 2001: Blogging invented. Promises to change the way people bore strangers with banal anecdotes about their pets.