From: Wayne Davison <wayned@users.sourceforge.net>
To: zsh-users@sunsite.dk
Subject: Re: Resolved: Sourcing .zshrc from .zprofile causes problems
Date: Sat, 14 Aug 2004 21:58:45 -0700 [thread overview]
Message-ID: <20040815045845.GA16836@blorf.net> (raw)
In-Reply-To: <20040814182036.GS7509@ay.vinc17.org>
On Sat, Aug 14, 2004 at 08:20:36PM +0200, Vincent Lefevre wrote:
> You should define LC_COLORS in your .zshenv file.
Not necessarily. The .zshenv file is for things that are needed by all
shells, including non-interactive scripts. As such, I would suggest
just exporting LC_COLORS from .zprofile and leaving it alone.
The only thing I have in my .zshenv script is this:
if [[ $SHLVL == 1 && ! -o LOGIN ]]; then
source ~/.zprofile
fi
This is a kludge that ensured that an xterm that didn't start with any
of my login settings sourced my .zprofile. I'm not sure if it's still
needed with a modern X Windows setup, though. Hmm, I wonder if that
works right with a cron-initiated zsh script? Perhaps not...
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).
..wayne..
next prev parent reply other threads:[~2004-08-15 5:01 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 [this message]
2004-08-15 13:54 ` Vincent Lefevre
2004-08-15 18:38 ` Bart Schaefer
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=20040815045845.GA16836@blorf.net \
--to=wayned@users.sourceforge.net \
--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).