From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13261 invoked from network); 14 Apr 1997 16:00:51 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 14 Apr 1997 16:00:51 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id LAA02305; Mon, 14 Apr 1997 11:53:55 -0400 (EDT) Resent-Date: Mon, 14 Apr 1997 11:52:07 -0400 (EDT) Message-ID: <19970414114827.59780@retriever> Date: Mon, 14 Apr 1997 11:48:27 -0400 From: Louis-David Mitterrand To: zsh-users@math.gatech.edu Subject: Re: strange behaviour with .zsh and su References: <19970414103243.56053@retriever> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.69 In-Reply-To: ; from Timothy Luoma on Mon, Apr 14, 1997 at 08:47:35AM -0700 Reply-To: mito@sprynet.com Resent-Message-ID: <"8faRD2.0.1Y.cAbKp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/803 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Apr 14 97, Timothy Luoma wrote: > > I have had much success with putting just a .zshenv file in my $HOME with > some basic information, including a ZSH folder (which, in my case is > $HOME/Unix/zsh/). > > The zshenv file includes a loop which sources any file found in > $HOME/Unix/zsh/source, so I have several files in there: > > aliases > bindkeys > functions That would be an elegant solution to my .zshrc's uncontrolable inflation ;-) > The advantage is that I have all my aliases in one file, all my bindkeys > in another, etc etc and I can easily check/change them. An error in my > alises file does not prevent my bindkeys and functions from being loaded, > etc etc. > > I feel that this is a good solution, it works for 'su' just fine, and I > still only have one entry in my $HOME (.zshenv) and can put the other > zsh-related files in another nested folder. One question: dosen't putting your init commmands in a .zshenv guarantee that these init files will be sourced on *every* invocation of zsh, even non-interactive ones? Is it not preferable to have these files sourced only if the shell is interactive? Thanks. -- Louis-David Mitterrand http://www.aparima.com/F1/ mito@aparima.com