From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16353 invoked from network); 27 Aug 2001 19:38:26 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 27 Aug 2001 19:38:26 -0000 Received: (qmail 6528 invoked by alias); 27 Aug 2001 19:38:07 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4171 Received: (qmail 6510 invoked from network); 27 Aug 2001 19:38:05 -0000 Date: Mon, 27 Aug 2001 15:38:04 -0400 From: Russell Hoover To: zsh-users@sunsite.dk Subject: Do I really need a .zshenv? Message-ID: <20010827153804.A16051@panix.com> Mail-Followup-To: zsh-users@sunsite.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i X-To-All-My-Friends-In-Domestic-Surveillance: Hi There, Sports Fans! I have a ~/.zshenv in which I've set 25 to 30 environment variables. My ISP's /etc/zprofile sets about six env vars which I've re-set in my ~/.zshrc. ( The order of zsh startup files on my system is: (1) ~/.zshenv (2) /etc/zprofile (3) ~/.zprofile (4) ~/.zshrc ) I'd like to avoid, if possible, having *two* separate startup files, both of which contain env vars. I'd like to move everything that's in my ~/.zshenv over into my ~/.zshrc. That way, as I see it, I won't have to worry about /etc/zprofile ever changing, or having more variables added, and then me having to re-set anything. It's basically just an annoyance that /etc/zprofile overwrites ~/.zshenv. (And since my ~/.zshrc has a fairly long list of aliases, I can move all them into their own file and source that file from within ~/.zshrc.) (I also have a small ~/.zprofile.) My question: is there any reason for me to keep a .zshenv, instead of taking all the settings that are in it, and putting them in ~/.zshrc, and just getting rid of ~/.zshenv altogether? Is ~/.zshrc sourced *only* in interactive shells and not on *all* invocations of the shell (as ~/.zshenv is)? If so, how much (why) would that matter to me? (scripts, etc?) Thanks for any suggestions. -- // rj@panix.com //