Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Invocation of zshenv
- X-seq: zsh-users 17577
- From: Florian Lindner <mailinglists@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Invocation of zshenv
- Date: Thu, 17 Jan 2013 10:23:06 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=x-received:from:to:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type; bh=wAVxLivOKxP4ksIZnh9Zx5aEwM9PB4Nn3gKJLF9GeZc=; b=gJwNoE20uoa92+K/nonHcvh7UAxyiNxjuGuhzeVAGnK2kFn7g+Z/O5uTVHTF3ZRq7E 22NLc25sWx3q1fP702CEKcxsZErXlI9RIWMUfOhZdvs6o03zrYZzkBz/wafnnpPub3d7 Oo/kxipMfbna5gQaGr3Ve8OMnKhzeIQCT7i6w=
- In-reply-to: <20130115130247.6c04e610@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <28298170.euN6CzUU1l@horus> <20130115130247.6c04e610@pwslap01u.europe.root.pri>
Am Dienstag, 15. Januar 2013, 13:02:47 schrieb Peter Stephenson:
> On Tue, 15 Jan 2013 12:14:45 +0100
>
> Florian Lindner <mailinglists@xxxxxx> wrote:
> > I have some PATH, EDITOR and PYTHONPATH set in my .zshenv. As far as
> > I understand it zshenv should be invoced on every kind of shell but
> > when I login using SSH it is not being sourced.
> >
> > What is the file to put such things that should be available in
> > _every_ shell session?
>
> .zshenv is the file to use. If it's not being sourced on some
> occasions, something somewhere is changing the configuration. The only
> ways of doing this I can think of are for something in /etc/zshenv to
> stop it by setting the option NO_RCS, or for the environment variable
> ZDOTDIR to point to a different directory, or for some emulation mode
> such as ksh that doesn't use it to be in effect.
ZDOTDIR and NO_RCS are not set, neither as environment variable nor it's
mentioned in the config.
But actually, I forgot to mention I'm using the grml-zsh-config on Arch.
.zshenv is sourced on normal login shells.
Ivan mentioned a problem regarding /etc/profile. My profile contains:
# Set our default path
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH
So it 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?
Thanks,
Florian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author