From: "Bart Schaefer" <schaefer@brasslantern.com>
To: Timothy J Luoma <luomat+zsh+users@luomat.peak.org>,
zsh-users@math.gatech.edu
Subject: Re: /etc/profile being read after my personal .zshenv
Date: Sun, 23 Nov 1997 21:34:29 -0800 [thread overview]
Message-ID: <971123213429.ZM26136@candle.brasslantern.com> (raw)
In-Reply-To: <199711240322.WAA18587@luomat.peak.org>
On Nov 23, 10:22pm, Timothy J Luoma wrote:
} Subject: /etc/profile being read after my personal .zshenv
}
} How can I stop that?
You can't.
} I thought all systemwide files were read first, and then the personal ones.
Nope. The order is:
1 /etc/zshenv
2 (NO_RCS is checked, and if set, no more are read.)
3 $ZDOTDIR/.zshenv
(The next two are skipped when not a login shell.)
4 /etc/zprofile
5 $ZDOTDIR/.zprofile
6 (NO_RCS is checked again, and if set, no more are read.)
7 /etc/zshrc
8 $ZDOTDIR/.zshrc
(The last two are skipped when not a login shell.)
9 /etc/zlogin
10 $ZDOTDIR/.zlogin
Thus the only way to avoid /etc/zprofile on login shells is to also have
your own .zshenv skipped. The best you can do is override /etc/zprofile
in your .zprofile.
A quick-n-dirty solution is to link .zprofile and .zshenv, and take the hit
of having the same file read twice on logins.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1997-11-24 5:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-11-24 3:22 Timothy J Luoma
1997-11-24 5:34 ` Bart Schaefer [this message]
1997-11-24 17:07 ` Greg Badros
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=971123213429.ZM26136@candle.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=luomat+zsh+users@luomat.peak.org \
--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).