help / color / mirror / code / Atom feed
From: "Daniel Shahaf" <d.s@daniel.shahaf.name>
To: "Abhishek Banerji" <abhishekbanerji1999@gmail.com>, zsh-workers@zsh.org
Subject: Re: zsh-newuser-install running before global "source" files
Date: Tue, 16 Aug 2022 07:03:14 +0000	[thread overview]
Message-ID: <f0171143-4a0b-4bed-97bb-7abf2cb15801@www.fastmail.com> (raw)
In-Reply-To: <CAG6tSrdExjBsj3581zLFVnLfkwSdvLs3Tj7scOkegV1_-YZxWg@mail.gmail.com>

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 (via
> 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 . «strings =zsh | grep zshenv» or «strace -e file zsh
-fc : 2>&1 | grep zshenv» 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:


(who suspects there's an easier answer that he's overlooking)

      reply	other threads:[~2022-08-16  7:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-15 19:56 Abhishek Banerji
2022-08-16  7:03 ` Daniel Shahaf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f0171143-4a0b-4bed-97bb-7abf2cb15801@www.fastmail.com \
    --to=d.s@daniel.shahaf.name \
    --cc=abhishekbanerji1999@gmail.com \
    --cc=zsh-workers@zsh.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).