Zsh Mailing List Archive
Messages sorted by:
Re: Invocation of zshenv
- X-seq: zsh-users 17595
- From: Florian Lindner <mailinglists@xxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Invocation of zshenv
- Date: Sun, 20 Jan 2013 19:43:27 +0100
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xgm.de; s=google; h=x-received:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=Uau+Qs9EKt1D7RMjjLqcv+MtOoEv8uS+al19n1iEuok=; b=gH7LOT318A0uh/17P9xEWWoSOJ2BJyXD3dzs+l6Nq8EzFEkiz5npMWwubgriceccDS MrTlvtSGdJn3hHSNqRVmKmQ3zTpBBdoxAEpsjqjDJiqkZ3jN1dK40OjbJ/bERu1nB1cO D/Pnmq8sOFTLoCX9OajLwOAymb8oacpgywYLo=
- In-reply-to: <130117065847.ZM23286@torch.brasslantern.com>
- List-help: <mailto:email@example.com>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:firstname.lastname@example.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <28298170.euN6CzUU1l@horus> <36715347.6JBz4RFEZ9@horus> <130117065847.ZM23286@torch.brasslantern.com>
Am Donnerstag, 17. Januar 2013, 06:58:47 schrieb Bart Schaefer:
> 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?
Ok, I just found out that it works only when using the shell from my graphical
Login from a text console or SSH does not work. But .zshenv is invoked in any
case. I suspect that the two latter cases (text + SSH) are login shells and
/etc/profile is evaluated. This file simply sets and not append/prepend to a
> 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.
It works (the PATH setting I did in .zshenv is there). But as you have guessed
it fucks up my environment ;-)
> 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.
I changed my /etc/profile from
Any potential problems with that?
Messages sorted by: