Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] init.sourcehome: look in ~/.config/zsh for files



On Mon, Jan 1, 2024 at 11:59 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
>
> On Tue, Jan 2, 2024, at 2:01 AM, Jörg Sommer wrote:
> > Would it be an option to initialize ZDOTDIR with ~/.config/zsh, if it
> > exists?
>
> This would still make the already-complicated startup process even
> more complicated.

It also doesn't address the question of whether the file names inside
~/.config/zsh/ also start with a dot.  Although I don't think the XDG
spec says so, I have the impression that the expectation is that files
in the config directory are not hidden.

> > This would not require the setting of ZDOTDIR in /etc, i.e. asking
> > the administrator to make the change.
>
> Changing /etc/zshenv is not necessary.

I would not object to a change to zsh-newuser-install to set up the
linkages and ZDOTDIR when $XDG_CONFIG_HOME is detected.  This could be
accomplished (and solve the are-the-files-hidden question) by placing
"source" commands in the usual startup locations.  OTOH we already
went through one contentious and eventually abandoned attempt to
update zsh-newuser-install, so this may be a nonstarter.

Alternately, an XDG section could be added to StartupFiles/zshenv, so
that dropping that file in as ~/.zshenv would accomplish the desired
effect.




Messages sorted by: Reverse Date, Date, Thread, Author