From: "Daniel Shahaf" <email@example.com>
To: "Abhishek Banerji" <firstname.lastname@example.org>, email@example.com
Subject: Re: zsh-newuser-install running before global "source" files
Date: Tue, 16 Aug 2022 07:03:14 +0000 [thread overview]
Message-ID: <firstname.lastname@example.org> (raw)
Abhishek Banerji wrote on Mon, 15 Aug 2022 19:56 +00:00:
> 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
> this one was already present
> 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)
prev parent 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]
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 \
* 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).