From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9715 invoked from network); 14 Mar 2006 19:47:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 14 Mar 2006 19:47:39 -0000 Received: (qmail 81072 invoked from network); 14 Mar 2006 19:47:31 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 14 Mar 2006 19:47:31 -0000 Received: (qmail 12952 invoked by alias); 14 Mar 2006 19:47:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10020 Received: (qmail 12943 invoked from network); 14 Mar 2006 19:47:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 14 Mar 2006 19:47:24 -0000 Received: (qmail 78989 invoked from network); 14 Mar 2006 19:47:20 -0000 Received: from dan.emsphone.com (199.67.51.101) by a.mx.sunsite.dk with SMTP; 14 Mar 2006 19:47:17 -0000 Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k2EJlC9B000525 for zsh-users@sunsite.dk; Tue, 14 Mar 2006 13:47:12 -0600 (CST) (envelope-from dan) Date: Tue, 14 Mar 2006 13:47:12 -0600 From: Dan Nelson To: zsh-users@sunsite.dk Subject: Re: [zsh] zsh startup files Message-ID: <20060314194712.GA48583@dan.emsphone.com> References: <20060314181611.GA3972@let.rug.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060314181611.GA3972@let.rug.nl> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 In the last episode (Mar 14), Francisco Borges said: > On Tue, Mar 14, 2006 at 05:38PM +0000, zzapper wrote: > > At the risk of exposing my ignorance, I think there's a concept of > > multi-level startup files of type .z* such that ideally you don't > > have rerun all your setup every time you run say a small 3 line > > script. > > > > I've got everything in my ~/.zshenv can I do better? > > There is also .zlogin and .zshrc. > > You should move all the "interactive" part of your .zshenv into > .zshrc, i.e. anything that you won't need to run your scripts. My > zshenv is mostly about setting $PATH and other non interactive env. > variables. I alwys put one of the following comments at the top of my startup scripts so I remember what goes where, and in what order: # .zprofile -- loaded if login shell .zshenv .zprofile .zshrc .zlogin # .zshenv -- always loaded .zshenv .zprofile .zshrc .zlogin # .zshrc -- loaded if interactive shell .zshenv .zprofile .zshrc .zlogin The comments at at the top of the example scripts also have good descriptions of what should go into what script. -- Dan Nelson dnelson@allantgroup.com