zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: [PATCH] init.sourcehome: look in ~/.config/zsh for files
Date: Tue, 2 Jan 2024 12:00:53 -0800	[thread overview]
Message-ID: <CAH+w=7YKd9fx4eD5qvS3WyWQBrnTBa4zZ_4Ge3+u1vZEPi4M=w@mail.gmail.com> (raw)
In-Reply-To: <b6215335-34d9-42cb-a8f9-863c0f12523a@app.fastmail.com>

On Mon, Jan 1, 2024 at 11:59 PM Lawrence Velázquez <larryv@zsh.org> 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.


      parent reply	other threads:[~2024-01-02 20:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-01 19:59 Jörg Sommer
2024-01-01 20:06 ` Bart Schaefer
2024-01-01 21:14   ` Jörg Sommer
2024-01-01 22:25     ` earnestly
2024-01-01 22:41       ` Wesley Schwengle
2024-01-01 23:42         ` earnestly
2024-01-02  1:13           ` Wesley Schwengle
2024-01-01 23:31     ` Bart Schaefer
2024-01-02  7:01       ` Jörg Sommer
2024-01-02  7:58         ` Lawrence Velázquez
2024-01-02 11:18           ` zeurkous
2024-01-02 20:00           ` Bart Schaefer [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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

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

  git send-email \
    --in-reply-to='CAH+w=7YKd9fx4eD5qvS3WyWQBrnTBa4zZ_4Ge3+u1vZEPi4M=w@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

	https://git.vuxu.org/mirror/zsh/

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).