From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meiyo Peng Subject: move "source /etc/profile" from .zlogin to .zprofile Date: Sat, 13 Oct 2018 23:44:49 +0800 Message-ID: <87o9bxj1fy.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gBM6H-0005sF-2F for guix-devel@gnu.org; Sat, 13 Oct 2018 11:45:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gBM6D-0005n7-3J for guix-devel@gnu.org; Sat, 13 Oct 2018 11:45:09 -0400 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:45614) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gBM6C-0005lk-SP for guix-devel@gnu.org; Sat, 13 Oct 2018 11:45:05 -0400 Received: by mail-pg1-x532.google.com with SMTP id t70-v6so7184539pgd.12 for ; Sat, 13 Oct 2018 08:45:03 -0700 (PDT) Received: from guix (23.105.210.25.16clouds.com. [23.105.210.25]) by smtp.gmail.com with ESMTPSA id u1-v6sm5457881pgr.61.2018.10.13.08.44.59 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Oct 2018 08:45:02 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hello, Guix's default skeletons put "source /etc/profile" into ~/.zlogin. But /etc/profile resets the PATH environment variable, exports many other environment variables, and source /etc/bashrc. According to http://zsh.sourceforge.net/Intro/intro_3.html .zlogin is sourced after .zshrc and should not be used for alias definitions, options, environment variable settings, etc. Especially "as a general rule, it should not change the shell environment at all". I think it's better to source /etc/profile from ~/.zprofile. Meiyo Peng