From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: Invocation of zshenv
Date: Thu, 17 Jan 2013 06:58:47 -0800 [thread overview]
Message-ID: <130117065847.ZM23286@torch.brasslantern.com> (raw)
In-Reply-To: <36715347.6JBz4RFEZ9@horus>
On Jan 17, 10:23am, Florian Lindner wrote:
}
} So [/etc/profile] sets and exports the PATH but does not take a
} already set PATH variable into account. If .zshenv is sourced before
} /etc/profile that would explain it. But why only on SSH shells not on
} usual shells?
How do you typically create a "usual shell"? Log in on console, or
open a terminal window on a graphical desktop?
If the latter, it's possible that ssh shells are being invoked as
login shells whereas "usual" shells are not. This will depend on the
configuration of the terminal emulator.
Try putting
setopt NO_GLOBAL_RCS
in your .zshenv to see if that suppresses /etc/profile. However, you
may not want that in general, depending on what other environment the
global init files are establishing for you. Instead you may simply
need to reset the path again in a later file.
I put my path-setting logic in an extra file which is "source"d from
both .zshenv and .zlogin (first and last files sourced at startup).
This also has the advantage of making it easier to customize the path
to each local host.
next prev parent reply other threads:[~2013-01-17 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-15 11:14 Florian Lindner
2013-01-15 13:02 ` Peter Stephenson
2013-01-17 9:23 ` Florian Lindner
2013-01-17 14:58 ` Bart Schaefer [this message]
2013-01-20 18:43 ` Florian Lindner
2013-01-15 13:15 ` Russell Harmon
2013-01-15 15:22 ` Ivan Sichmann Freitas
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=130117065847.ZM23286@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/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).