From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32249 invoked from network); 8 Sep 2022 23:16:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Sep 2022 23:16:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662678960; b=pe3pXJBkTvAYHR2p7QH8fgSQ9zHccsy57qA5z6tQ3aE0iI3hLITgTGq7xknnrOThtONTCR2Ib2 Ltad70RJjvxngDY0xiY2PEoTQq0Nwhey8wcQ1KGm9nX3tO1EHjM0I0Asl1O/ZEybOQ0sgh11g4 ErSnT3fsB+6kkwcjPm3VkVt+cg9ujRBCUIvVT2lZ0VFYzCmEagFDKmnW1WulodOpmVVHCfeyy6 CoDYVvsXymGOWOaVM1qT0y8DpXdDurDRCJzn5tcrVXgsRK+bMVgHECaYQanHS8SA05Pcc6QH+H Sra0KV5jDKPGANipb7W/DrcsL79bdDZFDNerb/Ea/Gy27A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f48.google.com) smtp.remote-ip=209.85.218.48; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662678960; bh=hslnd8AHBG/40rxJn0jeK2pFJlZZ1a0stpYhCMdO76c=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=ibQAPzzI8+0VaDUPaUxH8rXYIegJ6/kknKXCkiAO0mcFODtrpH7OPdY8XK7Eyl6vy0vvYi5J9b 4SIJYv6wI13NI3ot+7ov46c/wjC9iNoe760djLhfNX3q4wOV30czezoYHhIpJr6c4sa2OQE2sd GBxOwi4U70NNi5KIqESufWVBpB62+ASw5pHzq8Th/uro0+PltlxO0EvIpF0CnIK1s6sJ21loz1 J5vK9aKXoPJuSeTFiXdTQaVy9osyqWjP3d7EE7Pe1jzUw7WzZ0vwYZ79z2Gp58ZEaraxy+FDbM rKiUIW1S1SIis0y7GATLiIUg+fhR65wJDee8q0GiWdOCVA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Q4aYuJ8wjiMNNbkC1H4GXbxBSx8c6+X7UrtrEPoj66I=; b=IzvkOYcJQwcwIl8sd5nC9l7MuD dJmJNpr8EG2Il00xAMtnHe/nzpSQLX3xpFXwJp1wUhQVdSNLYgCuYHRygVeM8WzjoVydTS2scJ3W3 uErfNWuxYO6RWWmVe0nTUpUpvX46LSJpCtttP6K2d5fppjK4cPWNCRkgiEQBTopFbokH1L/CwXhpN YP+E5HCT2cbRjJQpl1yHCgOn291gBSBfGJ++4tn3noagDnrNZzW7t62Su2ijxFYk2Zjtu3wacozXB YJkJHbAjVHcoBnZqmF4fYT4P11Ilfc2lwDPPdIHuqvvz26lrawqjLkGHyPlPcKCJc6c5RS0+AMTLw iMlCaiJQ==; Received: from authenticated user by zero.zsh.org with local id 1oWQkZ-00037A-UI; Thu, 08 Sep 2022 23:15:59 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f48.google.com) smtp.remote-ip=209.85.218.48; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ej1-f48.google.com ([209.85.218.48]:35594) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oWQjf-0002OU-Ay; Thu, 08 Sep 2022 23:15:04 +0000 Received: by mail-ej1-f48.google.com with SMTP id go34so22042ejc.2 for ; Thu, 08 Sep 2022 16:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=Q4aYuJ8wjiMNNbkC1H4GXbxBSx8c6+X7UrtrEPoj66I=; b=Vjb+ct+F+JIsfTwl2Wsg5ak/vLEyPTKLwDTzi+OjOaDE6qnAwn5cNZKlr9/0OG3tJH riiQ/Yw3k+YJiRTeofQvoQi6/A9jbvkXyvCoo6sdMb5IaSb2sO1AdwZq6Cdb3bkyqGDV wopiN2RSTflfzjNPfTCh6s1gKOyNSQUj4mT20PoslQNfTLTm0AhdujAonjkqBG0xw/u9 fTgxx2e4z3niAAfGDIhj4Jjim9GKNmQMkTWlM0Y0ZAKgMIrhxNqATba8ZcPZjzHnpOum H/EYjpqnFKe+Z0HJJAtD5Z4m7YwSfDwESt90u5lHpp/JVe/LtiAK7iFXZbseBLQ1WNBx QAFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=Q4aYuJ8wjiMNNbkC1H4GXbxBSx8c6+X7UrtrEPoj66I=; b=WYPpK4y/2KJ9CP9d5s1wzF5Iwc0yxca+0xstIarO9NrIraTQbHpiuvOa/nON6Brxfx +MTXpoFLUPqLjsrIYNl9hXkt83sFzcTuuaBMhcoBsY1789fuRZUxVE9M5VdeERoNivGZ qF5UKA/s4syI/HJSmxBNm6nhDJdNsHdAB6ZM3nWp+D4WO9QJZld5n+Z9+SqIa3QP5e/e JYx1lnJTRWxYQQ9WxJZMAPAgkb5tThh9GFev+vHGmS6RYyG8ab77zt9pIDDhM+PGL8KD ZZHHEYI1ByQfQf5Vu8zfgm2gemFCgaOIvIoMuSez6SXRGngSeJ1XJB/5mYP8DfBvb5fp 45Yg== X-Gm-Message-State: ACgBeo1qSu3+rsWEeV/2Nen+86LjVp+eQrZddfp/xadtcbavTAPN02+p 1xVXe05WQE7PCn+usDkg583adoWaYmRxK/wl1SCCo69KlWPIzQ== X-Google-Smtp-Source: AA6agR53UDsfbEE+lbwLYyuTdJ3Clh0ipAA9adYj2lPsPXldDGffsTyoozdfLWp02R2Irf1vZX00HuGRDerzEScfbB4= X-Received: by 2002:a17:907:272a:b0:741:855c:8875 with SMTP id d10-20020a170907272a00b00741855c8875mr7528160ejl.575.1662678902885; Thu, 08 Sep 2022 16:15:02 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Felipe Contreras Date: Thu, 8 Sep 2022 18:14:51 -0500 Message-ID: Subject: Re: zprofile and .profile sourcing To: Piscium Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28059 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Thu, Sep 8, 2022 at 4:37 PM Piscium wrote: > > I have been trying (unsuccessfully) to figure out why ~/.profile is > sourced in some cases and not in others. > The Zsh man page says (in different sections): > "Login shells source /etc/profile followed by $HOME/.profile." That's only in sh or ksh compatibility mode. > "If the shell is a login shell, commands are read from > /etc/zsh/zprofile and then $ZDOTDIR/.zprofile." As Eric Cook already pointed out, the display manager sources ~/.profile for you when you login, but that doesn't happen in the console, you need to source ~/.profile from ~/.zprofile. I actually created a video going step by step on how to create a proper configuration [1], and I also maintain a very simple configuration that should be generic enough for everyone [2]. Cheers. [1] https://youtu.be/ESEP7WezCqY [2] https://github.com/felipec/dot-team -- Felipe Contreras