From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11804 invoked by alias); 17 Jan 2013 10:29:31 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17577 Received: (qmail 11802 invoked from network); 17 Jan 2013 10:29:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW,T_DKIM_INVALID autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.214.46 as permitted sender) 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= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding:content-type :x-gm-message-state; bh=wAVxLivOKxP4ksIZnh9Zx5aEwM9PB4Nn3gKJLF9GeZc=; b=N1yX7my5pH92F7uYs1SsVGyimDAOLyRvpRXVPmxTJMAqnX0epoiPEsxWJANv/0QAqd vJDmVRhi7zBTLdGtQDq/eQYLIMDAlZkvltVNclnQB8GUwJrNfWJGpFxzS2e1YqIb4Qo0 sWjZg1RdZCH8+vaUtQDZAkqOXGr2AK8r88iV8GcIUuBu9AHEfe9BBD9rpqy50QL6TVY+ BqdUSvI56rryfrqeZX+GnzX0ihNX/wcihm8/acMOEeIeBuekTAjEBv56b9m6Uz1QdEpr lBfvq8w5ZRN3bCA66rhrepgKXGEv+xLVIFSvSeMZl69pVBD3ypGUZB73J842KGd3gV40 pqew== X-Received: by 10.204.147.143 with SMTP id l15mr1342257bkv.28.1358414589167; Thu, 17 Jan 2013 01:23:09 -0800 (PST) From: Florian Lindner To: zsh-users@zsh.org Subject: Re: Invocation of zshenv Date: Thu, 17 Jan 2013 10:23:06 +0100 Message-ID: <36715347.6JBz4RFEZ9@horus> User-Agent: KMail/4.9.5 (Linux/3.6.11-1-ARCH; KDE/4.9.5; x86_64; ; ) In-Reply-To: <20130115130247.6c04e610@pwslap01u.europe.root.pri> References: <28298170.euN6CzUU1l@horus> <20130115130247.6c04e610@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Gm-Message-State: ALoCoQlFwQ2yO15rQ+oeMU4Hi3LU1xZNXUpwtM/0wVykt+CkF56+bpOU0H8oHoz+IOIMclekh29j Am Dienstag, 15. Januar 2013, 13:02:47 schrieb Peter Stephenson: > On Tue, 15 Jan 2013 12:14:45 +0100 > > Florian Lindner 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