zsh-users
 help / color / mirror / code / Atom feed
From: Louis-David Mitterrand <mito@aparima.com>
To: zsh-users@math.gatech.edu
Subject: Re: strange behaviour with .zsh and su
Date: Mon, 14 Apr 1997 11:48:27 -0400	[thread overview]
Message-ID: <19970414114827.59780@retriever> (raw)
In-Reply-To: <Pine.SUN.3.96.970414084219.21724A-100000@kira>; from Timothy Luoma on Mon, Apr 14, 1997 at 08:47:35AM -0700

On Apr 14 97, Timothy Luoma <luomat@peak.org> 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


  reply	other threads:[~1997-04-14 16:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-14 14:32 Louis-David Mitterrand
1997-04-14 15:06 ` Zefram
1997-04-14 15:47 ` Timothy Luoma
1997-04-14 15:48   ` Louis-David Mitterrand [this message]
1997-04-14 16:01     ` Timothy Luoma
1997-04-14 16:14       ` Louis-David Mitterrand
     [not found]         ` <mito@aparima.com>
1997-04-14 16:54           ` Bart Schaefer
1997-04-14 18:20   ` Stefan Monnier
1997-04-14 18:32     ` Richard Coleman
1997-04-14 20:27       ` Stefan Monnier
1997-04-14 18:42     ` Tom Howland
1997-04-14 16:02 ` gwing
1997-04-14 17:03 ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19970414114827.59780@retriever \
    --to=mito@aparima.com \
    --cc=mito@sprynet.com \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).