From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: Resolved: Sourcing .zshrc from .zprofile causes problems
Date: Sun, 15 Aug 2004 11:38:05 -0700 (PDT) [thread overview]
Message-ID: <Pine.LNX.4.61.0408151126400.935@toltec.zanshin.com> (raw)
In-Reply-To: <20040815045845.GA16836@blorf.net>
On Sat, 14 Aug 2004, Wayne Davison wrote:
> The only thing I have in my .zshenv script is this:
>
> if [[ $SHLVL == 1 && ! -o LOGIN ]]; then
> source ~/.zprofile
> fi
>
> I used to set things like the PATH in the .zshenv file until it caused
> me problems using gdb: gdb runs the executable using $SHELL, and that
> caused some of my debug environment settings to get overridden (ouch).
I still set PATH in $ZDOTDIR/.zshenv (which I source from ~/.zshenv in
case ZDOTDIR isn't yet set) but I adopted this convention:
if [[ -z $ZSH_ENVPATH ]]
then
# ... various adjustments to $path including typeset -U) ...
export ZSH_ENVPATH=$PATH
fi
This has the advantage of letting me check later whether something else
has changed the path, and even force it back to its original state with
PATH=$ZSH_ENVPATH.
prev parent reply other threads:[~2004-08-15 18:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-13 1:02 lists
2004-08-13 5:11 ` Bart Schaefer
2004-08-13 6:55 ` Philippe Troin
2004-08-14 15:31 ` Resolved: " lists
2004-08-14 18:20 ` Vincent Lefevre
2004-08-15 4:58 ` Wayne Davison
2004-08-15 13:54 ` Vincent Lefevre
2004-08-15 18:38 ` Bart Schaefer [this message]
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=Pine.LNX.4.61.0408151126400.935@toltec.zanshin.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/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).