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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25419 invoked from network); 2 Jan 2024 20:01:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Jan 2024 20:01:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1704225684; b=UTKnHB8tWtkGVrQWFU2UwtOcfzxLRuXg2YeBeS7q7ZHkOlNIZf7LqHgMwNlWXwylg0BY5CoI0d BrHrb7RMYb16cjBHfd2+Y4k56DKL4iy248guNYScN7YFSIdk0uqP41IlqUoQJoRUSXfWWXQWXu 4A0tnKxJ32BbyyUehiRz/h3nwrdRVrX1NRzk6msbLUjsWeDJcVvstmhrvebyp8Z8/oCDlbfMIj JbA6X7VH6ZXq9Kq4pB7RY6Mz4kj+dg68EWP8jzGBkBo71anOZ8vLo8ObLFMKc17a8l18Wl2LMG 0gOu82dl0IIHfSVCL1AkUiVECnfkBkxRGejlmpY/fhD2Bw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f43.google.com) smtp.remote-ip=209.85.218.43; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1704225684; bh=9LZtZb8qmOhItyTPKJPwSJTkJKnXGIaUdVmGmgB582I=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=mQqu3UPtMHLsrJ8yN5B1+qXd3iheyEdNvCb0NVuwnwWBQMN2Ahhl4sh8T1zxYFuvSqFF5XW6nh rnKl2n4qSbShoBuG7e0d0NM28ufNsK0ONSo571pkYFnlLec4LmLpKIAJl6HpYZoRwJE6PIAd0N bCdCzA14dPomeRredIsSg8sRkcimcptqtXn4dPbHtz5d519FZGlUses5bsNtasKwnmHJGHF3D9 opDJuh4R9M7Ji4Uzc4JCQ9685ZblED9hlgmVdqE5GvRjoKiFdJhbapvk8OtbFbjh1wYY3PKcuw Fiq+cpsi0fINhZS0z06Fh8sdj+K6JkFpIXBBkM7A44rKzg==; 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:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=s4M069MVViX+DMgMaiErEteKFyLrO9HkGfCSkhEK8dA=; b=VyPTSwOh1QgNoHNmchyKSkFB8z JOlK7EA+1oz3L7s10U/LvyoUUGgrkLtjH7NcX7TXct/7oTrbjpzIMz15oEwVnOFZjDikDxXd/Sh/s EKhg1oEfCrmv0eDLTLwS4NQI74hFV5D1HTpJ5FDz1FBBhb3O/o2iU7+rlQ3NX1wbHylhMI1GZ27+J csu/voGZs9uLTIPS/LtcXwgqIsZcW/dzy/RbusjIGLhnnew+YhoeUqPW4gTIBp+7v66U8lB/hmAFd pcGYuLqSrRYjoNDe9ggv2eTT0vAtCwmUpiBwsi2UMONhPIXe0CWx2Mu1/+S7Gflgd2/7pnc2mvI4Z iVbwFzqg==; Received: by zero.zsh.org with local id 1rKkx2-0000UZ-AF; Tue, 02 Jan 2024 20:01:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f43.google.com) smtp.remote-ip=209.85.218.43; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f43.google.com ([209.85.218.43]:47196) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1rKkwk-0000A9-6N; Tue, 02 Jan 2024 20:01:08 +0000 Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a26ed1e05c7so751537966b.2 for ; Tue, 02 Jan 2024 12:01:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1704225665; x=1704830465; darn=zsh.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=s4M069MVViX+DMgMaiErEteKFyLrO9HkGfCSkhEK8dA=; b=1JEBmHMDVcWB5qvIlZdD5GPbpIpeYVGzFIOj0K0nAHFrxliHBfTznUKUvW0Y1weYpV G6c8Xjgf0Kqlg/GA4x91LX7zAs3Xd6WgFs1/AdJ05wPmVpGwyiVXZBd3IaphoyAvn5I0 7Sfjvi8jla2HUW0E0HL6H2jtmwskdZjbKBxgf1S/mA00WnJ10nI6pCsfJRiioE2S3461 KI+xg2gvl/yYCHRzpJwsNxpZp+rxZFoAftaCqE/2N6lFCLQpXh2umRke90IRgG9knX4U veBLctw6YeKmLqGSwIjbFees5bA5A6D3CAH3f8zeDCm5OWhpNA3HUBnci/XFMje9w6Kg p94w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704225665; x=1704830465; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=s4M069MVViX+DMgMaiErEteKFyLrO9HkGfCSkhEK8dA=; b=fx3aeM/+lUkInNyA3g4f9AL60erml58tNGxEtNdEGDjkTDzLVGVQiOl6YSKX/PTLag t9u+oZk0fvCVWYkIh7LamrMuuux4lznPs/aG8YBXYX9JKH1VuMRMqpjvKC5Oj4Ij3Jqt FG6CVgTUREeH4wO/p/+a/4SXKUB22aQRWq2NCr7q2U/Ur7Ee2VhG5KXVGlXHzbRJ/hod xVQ3m+JpVTx8VWbGMh/tc6HwcOt7uqVKPKCC3uPbYcHadz49l+rFLAA3TA/XeX6hpxKV S5X9hP9OPehGtOYLHPEpUsvlwAfS7r2PiLgtwQJE7Ll6fwz07MZjxz5HdUbNrULBCEV7 ZILA== X-Gm-Message-State: AOJu0YzzSS+DYDrzdzJA8loy2mRHVY8HpApd4uOt1Xog/3du09oFzUHx vr/0JrZxb+tT7On6Gtm8MUzB6WesIOE5P6LLGkq8S1/dCzEgDlc31RA8ArI= X-Google-Smtp-Source: AGHT+IF48ZcGhD7e1L+/qzHGDhaKP9NTJ8QsuDOkisqOFRONo2kG2/X678QhobclNBXHfRuWjW+wOKeFwcvVP88yRzw= X-Received: by 2002:a17:906:73c6:b0:a27:5b4d:1c1 with SMTP id n6-20020a17090673c600b00a275b4d01c1mr3035205ejl.101.1704225665643; Tue, 02 Jan 2024 12:01:05 -0800 (PST) MIME-Version: 1.0 References: <6kojc6iwl5c6raahnkwzuwylats7qgwgybx4y3yliavu7h6z3w@42im63oedqil> In-Reply-To: From: Bart Schaefer Date: Tue, 2 Jan 2024 12:00:53 -0800 Message-ID: Subject: Re: [PATCH] init.sourcehome: look in ~/.config/zsh for files To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52461 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: On Mon, Jan 1, 2024 at 11:59=E2=80=AFPM Lawrence Vel=C3=A1zquez wrote: > > On Tue, Jan 2, 2024, at 2:01 AM, J=C3=B6rg 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.