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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, 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 31465 invoked from network); 16 Aug 2022 07:03:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Aug 2022 07:03:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1660633439; b=Y5AOO53YfE+jRuHg4YErGRjXdM0+3ZIVXG4R/O+jChVvGsaijIceM/PgojDDWFfV2sF4qlJbGi A6n7dCaH5fls23CLdqSzNg0IHkq5n4PNkhqB7OvVwSi4i1QnOoH3pt3xeJfvqOVZ+NMcu0wuPh DSF5lvClXMawDv+VF+5Ery6I0rGXMDqqE6VvzM2XLY3SQmQKpyhM5d7j9LjXzdJfgvQgKHOZ21 Q1VLWCnbqjz9GV5CVX+9GMzsd1jxEN+ypbiEZ9jxToKH9AqlKWoJOL9etD7R1vbyF9hoYEWquX +o/hH3ktmM6WPwm9jJoz1RnzVclzXVbQC1C8SUNzbkoiHQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (wout2-smtp.messagingengine.com) smtp.remote-ip=64.147.123.25; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1660633439; bh=lA3QAMwCYop4plzkohwuE7bHoFMTDQP5t/xHVIylwT0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=cq9eMC+EKQZMwvMeMr2lFG04BNPOwMnJLwQVgd5ckVxps//b0bnp6t3xKav5eHCc1cLkoxUdX5 1xIHU8FAoch1P6VyZThusmJAKUH1eIfkyWyrzLiVQ9AP7jEfq8R+EoInbE7fgj97YQ51H5C5kt +uWXfRgl0kNwKO6HHOPpFYlzkGXT8RbyrvftSxUjI77SiyDMi7bj8Tvy7vhilKUbA70AMFoiCI 7kb2DEC1T61jiYzqvtssmCjJ+2dip3WdPOTsjFGDSNlyPPOIzlot7P+vNTaIUTpq5cF84QFcuu VgXYFCfSKXLPIyGxIn8L2TtM2o0Bb/vqfJ84iOeJedQ1kg==; 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-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xf7+8ARfjaIN3OYqVkvjTl7SpyKkksJFxl7pM/8gUpU=; b=h3XVNPLYQ0rhsvxld83pp8uCCY qZL1lgeO70kWxzPc4CBVltFzfMXijSXkzTtCfr+7rBRtrJGsj2WEwUMAYzgLoSiD3nek2Msum/lTS xIVbJt5iO+jD7uhbgAotJNWEY/p/8nNGZ4B4IsPW1jmPvQ25pgOdD32u4++InvqSSmdUzKkXG2D9L KeFcpXfGAqJZoVslSx6ZHhrS+mp5uod2TerOTQtA3PSzL8Mlcwt+WIR/gGDvtYtKY7fL3jlb1YWCk TA53b+M385Prneltr0nYzo8RSIYI6eApWmsGWZB2bgZ79EJAEHBM4YKOfebe2BzHwT8rsHtXvEoOf l9IfGqQA==; Received: from authenticated user by zero.zsh.org with local id 1oNqcH-0001ja-Vh; Tue, 16 Aug 2022 07:03:58 +0000 Authentication-Results: zsh.org; iprev=pass (wout2-smtp.messagingengine.com) smtp.remote-ip=64.147.123.25; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:46443) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oNqc0-0001P5-PB; Tue, 16 Aug 2022 07:03:42 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 29E9E32005BC; Tue, 16 Aug 2022 03:03:36 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute2.internal (MEProxy); Tue, 16 Aug 2022 03:03:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:content-transfer-encoding:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to; s=fm3; t=1660633415; x=1660719815; bh=xf7+8ARfjaIN3OYqVkvjTl7Sp yKkksJFxl7pM/8gUpU=; b=FpW2l1ZJY+cGhFiNUbnnfBEumW522deHvYpCV9GRU 9Y+VMSYUZ7ZmKrBJSXs1j4b9cUpg178s1lHTIHCK0gnQpdV/W4GLabZmFN6YmAKG bKjU8WFA++cbwkiMwBlXW31tJjhULnl1VKHd1IeOqQrcQAXGASSZpsdln8DE+r/0 HVt293v4uk0Pjk5nAVcf2QHUMW6ZA3ZFb1b0mAam0dq83gQ9AbqVZZWffRiImPhq L78yfTfARPeXJ0C34MgU1L/AUGN2AMTf+F8WAwVxCOL2yviDtMHWXupVMBTYdSf6 8bmJK2om5JxjzMiKuMNMZdiylT9AyYW9lLdqEJMuOb8nw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1660633415; x=1660719815; bh=x f7+8ARfjaIN3OYqVkvjTl7SpyKkksJFxl7pM/8gUpU=; b=SD7d1YRgRLr5GOLjG Edhl5+yVUBDiM72pH7o00xmqGu/nGyeEZfIJhqQQCQMUvxakb7rMXpBfOKt7uPQW 6e1+Cy8vr8eVZUHELws8LgW2T3ORUpiJi4zW+jHCIfkFMSjJRMsdUIK4M28B2CIf DcRnHVFsLVsGb2Q4V+yoIgrrxyximvXbJF2NfZPawCLb0w3x2Q0AXzoLHyxcBp15 K4z3mThHBW7dwqRljztG1GqbV0IpaAaHGgCCyOy0R01eViz89F5yhNuAN64ImK3m Y0ZPOOLhMzfE0eRR4Jsv57nbLn5vPiTAznrteFQzb/N/i+3fFPbzCTOeTHTvxE2G +i8oQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdehfedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtgfesthhqredtreerjeenucfhrhhomhepfdff rghnihgvlhcuufhhrghhrghffdcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrg hmvgeqnecuggftrfgrthhtvghrnhepfefhkeefveeileelheeiffdtkedujeelvdfhtdej tdeggedvuefffeelhefhvdfgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 73D6B2A20075; Tue, 16 Aug 2022 03:03:35 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-841-g7899e99a45-fm-20220811.002-g7899e99a Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Tue, 16 Aug 2022 07:03:14 +0000 From: "Daniel Shahaf" To: "Abhishek Banerji" , zsh-workers@zsh.org Subject: Re: zsh-newuser-install running before global "source" files Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 50481 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Abhishek Banerji wrote on Mon, 15 Aug 2022 19:56 +00:00: > Hi, > I noticed that no matter where I set ZDOTDIR env variable, > zsh-newuser-install will always look for $HOME/.z* files and shows the= new > user message and prompt. But I can press 'q' and it will then source > $ZDOTDIR files and everything works from there. but every new shell (v= ia > ssh) or terminal i open the new user prompt shows up. > > I have set ZDOTDIR env variable in the following files and in > zsh-newuser-install the variable is not set. > > ones i had to create > /etc/zprofile > /etc/zshenv > /etc/zshrc > > this one was already present > /etc/zsh/zprofile > > DISTRO: Archlinux zsh-newuser-install has been looking for $ZDOTDIR before $HOME since 2005 at least. Chances are the global zshenv file isn't called /etc/zshenv in your build. Check that . =C2=ABstrings =3Dzsh | grep zshenv=C2=BB or =C2=ABs= trace -e file zsh -fc : 2>&1 | grep zshenv=C2=BB should find it. Setting $ZDOTDIR in the global zprofile or zshrc isn't expected to work as these are sourced _after_ zsh-newuser-install is run. [Citation: Src/init.c:run_init_scripts().] Cheers, Daniel (who suspects there's an easier answer that he's overlooking)