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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22070 invoked from network); 12 Feb 2021 05:48:10 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2021 05:48:10 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613108890; b=n7g1+iuxrd/xbmTfjjudMwr+6ddQPtqdgXKI3LWYI4C7uJc75wteWFEetV8xjMH/cl2m6mEBNC UU7VQuR2++SSef5iPtLzEpf3PfB3qr+KiVRFggvJ4ryXO9USseJ2qCAOVdfdy2E/kR+L152fVv Lnv2n66V7XkGR6DaiBvgXHVs/YRxTYPnxBPL4bwB2Dy1K3zNae8PP+TNf7UL2Xkfy4YPk9+fn6 ft37Ntiv9fA3cOVEJPZuaMzGcwbGDt9tpV9uX5zg2FSrB0xVPQ6121+k6OWLe1wqZeqPbzOFRU OgYK8kExUUmd45daL2b4/1+OyakLfsBFOB/BcNIFIhaJag==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f51.google.com) smtp.remote-ip=209.85.167.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1613108890; bh=g9qUTOYXRPWVgfZL71aThV22gOfGwm8VtBKKiU3fK/s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:In-Reply-To:Cc:References:Message-ID:Date:Subject: MIME-Version:From:Content-Transfer-Encoding:Content-Type:DKIM-Signature: DKIM-Signature; b=n913ME5A2mUqglNqUOg5XXT0xIQrV4eficP1UNybORUyYhODy8SoVx59TmoiveFyhei/UYOG4i hY3XDguuNgZp9WL5M6n32qAeOwq1FggagTyFgVZW9A322BPV/FqdjgsnqSNk30RMKSaUC/yNIf GA7hgK0FFAASNtJp3TnV322++vGMEyq7wuEj2ojApMSYAxbmdfzAaKCudXUeNNpRxIO19TwPdA WSqpaYKlDnT3QYDKuvUFGrlPMQGXxtk+0QqawzYT9XmS42Rff7oOtsEBDmdgWZDOVk4qthJt+R vhMc/sh6ejFWqGy6x47fBKJRXpbWtT3juD0JWZCxbTyE+Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:In-Reply-To:Cc:References: Message-Id:Date:Subject:Mime-Version:From:Content-Transfer-Encoding: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=EoFd4oBLtTjZiEEcbKO5FcYupiv7DBjydZ4GAc51HVs=; b=KNS3KzuNZ4SSrZ1Ev07gZk4vZf 5KHLBvCb06FlfC9JNxZNV10LitjRSkqxpIp8EMvl2sklUdo4XTLg5E8mRwOIZnw9JUQWTImqmkzrl TM38XpI1qr1GyB9agowSTDqICRIxCaPX0pmgN4ORaha4CqQS3rq3wGO4nZiJRwneoI0nbfYsaHOkV Mrc15+7bVEgXdbfgyuxmAXyoSG4uE7qFi7rWJMUXZ69Z/KAcEwR2wL0LuW6gnM8bWBopC7s8ibwKF kMxp1s6KOF0evDU/4PqUg3F7dB9VzjqZJU7SuG9Cx+Lty1bpzhsn7pp47gjRUNqrcptv1tYZg0+1g AIm8Lr1A==; Received: from authenticated user by zero.zsh.org with local id 1lARJI-0009D0-EI; Fri, 12 Feb 2021 05:48:08 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f51.google.com) smtp.remote-ip=209.85.167.51; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f51.google.com ([209.85.167.51]:44492) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lARIr-0008k2-1y; Fri, 12 Feb 2021 05:47:42 +0000 Received: by mail-lf1-f51.google.com with SMTP id p21so11475164lfu.11 for ; Thu, 11 Feb 2021 21:47:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=EoFd4oBLtTjZiEEcbKO5FcYupiv7DBjydZ4GAc51HVs=; b=CiBGtRyCSs5ednQ909nf9/+ClY2tWfO8yUuouXwyPvhb7U0AsrWEGXvazUsC78u/+8 J6XKiQ0D4MqhLLx6kUUBn73Bo7J+SszA4pWeGuA2agGHrTgLWQU5ehiCj42gy1LKSmAt rFspBJL9PoG9LsV6CX02HfVoTe1m7bQyuaWWx+ixbIZx3H/aTS9gPVHCmbUyed89v81b PdIW0QxAYAvxWVyRVxZsVJTDVz3lsOMjD44FFCbihxNrYrlSa8u8sMUgh4SHJ5R5fBT5 YKXQzIKhYwO15CYXfUqSOFBQ0j5oaKJ6WIRuEDn082fKj9OebUcBUAArZVV3yWRd3ktz VI6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=EoFd4oBLtTjZiEEcbKO5FcYupiv7DBjydZ4GAc51HVs=; b=nhs83f/zjsYiyIzBgZHoVL0LhL1zi9DR95D9w89ZZts0R7zK8qQnDqwd95aRf1MvYz 4Eo+20C42tP3CiFpc00IpJ+CjaPhtQVh5gbrX+j6S5fGFUvKEkcXuYXkInMchj2G5Ow9 YOpZuTJrAKkNn1gmnJ3beZedhVykrduqIMZrygSddW7g82gvWnQDwCmiFc+mHYuRZuur PTwuoEiOdIZHNTbmToJm5EmO7q7Q24PkZEJmv9Hmn1Z4wxkc9g52I/oS1eNJDf4PYTOT qnR45Z40pBHDRypMzkZLfaV7FWq5YSmJUib6Vou17VIkeVisYQO7muBHg6PKc6ygKhGz zMwg== X-Gm-Message-State: AOAM530gDnlMP2M4fTmdfChYqOK5F4fFLjjsOtlm8lij3IpG859imPOO K2tqJznB14NGMGwtWtQOW636PrWI2fa+4w== X-Google-Smtp-Source: ABdhPJzd59Sv6uYejdmSdUuhFffHHwMf9/ntgfnWLbeQIjOBbu4s0ZKsj0MccDlZUQxJ2eGw+uAN4A== X-Received: by 2002:a19:8048:: with SMTP id b69mr715717lfd.337.1613108859559; Thu, 11 Feb 2021 21:47:39 -0800 (PST) Received: from [192.168.1.20] (hag-tkubng22-50df3e-132.dhcp.inet.fi. [80.223.62.132]) by smtp.gmail.com with ESMTPSA id b5sm864315lfi.3.2021.02.11.21.47.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Feb 2021 21:47:39 -0800 (PST) Content-Type: multipart/alternative; boundary=Apple-Mail-CF0858E9-0AB8-4D48-8045-84B41CE92D2A Content-Transfer-Encoding: 7bit From: Marlon Richert Mime-Version: 1.0 (1.0) Subject: Re: Rewrite of zsh-newuser-install Date: Fri, 12 Feb 2021 07:47:37 +0200 Message-Id: <670CED5D-45CA-427D-81DE-B381D9D8CE49@gmail.com> References: Cc: dana , Daniel Shahaf , Zsh hackers list In-Reply-To: To: Bart Schaefer X-Mailer: iPhone Mail (18D52) X-Seq: 48007 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: Archived-At: --Apple-Mail-CF0858E9-0AB8-4D48-8045-84B41CE92D2A Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable > On 11. Feb 2021, at 10.30, Bart Schaefer wrote= : > This is my fault for not re-verifying that the file locations in the > sample did not conflict with any of my defaults. I point it out > because something like this is one of the reasons that > zsh-newuser-install asks questions before choosing file locations, > which is part of what we're supposed to be discussing in this thread. Sure, I think that=E2=80=99s at least one thing that=E2=80=99s safe to ask. S= omething like this: Where do you want to store Zsh config, cache and history files? 1. All in your $HOME dir. 2. All in another dir of you choosing 3. In the standard locations defined by the XDG Base Directory Specification= (subdirs in ~/.config, ~/.cache and ~/.local/share, respectively, by defaul= t). > Incidentally, I append -$ZSH_VERSION to the compdump file name. That=E2=80=99s not necessary. compdump saves $ZSH_VERSION in the compdump fi= le and compinit checks for it: https://github.com/zsh-users/zsh/blob/2cf6032= a301d994c578e5e1942c4815e85651647/Completion/compinit#L491 >> zmodload -F zsh/zutil b:zstyle # Load `zstyle` builtin. >=20 > Hmm, I wouldn't think this was necessary after compinit. No, but it is necessary _before_ compinit. And compinit even has a style it c= hecks and which should thus be set before running compinit: https://github.c= om/zsh-users/zsh/blob/2cf6032a301d994c578e5e1942c4815e85651647/Completion/co= mpinit#L566 >> zstyle ':completion:*' completer _expand _complete _history _correct _ign= ored >=20 > Did I miss the reason for removing _oldlist? No, I didn=E2=80=99t give a reason. I tried out both _list and _oldlist, but= both seemed unnecessary to get the behavior I=E2=80=99m after. --Apple-Mail-CF0858E9-0AB8-4D48-8045-84B41CE92D2A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable


On 11. Feb 2021, at 10.30, Bart Schaefer <= schaefer@brasslantern.com> wrote:
This is my fault for not re-verifyin= g that the file locations in the
sample did not conflict with any of my defaults. &nb= sp;I point it out
because something like this is one of the r= easons that
zsh-newuser-install asks questions before choosi= ng file locations,
which is part of what we're supposed to b= e discussing in this thread.

Sure, I think that=E2=80=99s at least one thing that=E2=80=99s safe to ask= . Something like this:

Where do you want to store Z= sh config, cache and history files?

1. All in your $= HOME dir.
2. All in another dir of you choosing
3. In th= e standard locations defined by the XDG Base Directory Specification (subdir= s in ~/.config, ~/.cache and ~/.local/share, respectively, by default).


=
Incident= ally, I append -$ZSH_VERSION to the compdump file name.

That=E2=80=99s not necessary. compdump saves $Z= SH_VERSION in the compdump file and compinit checks for it: https://github.com/zsh-users/zsh/blob/2cf6032a3= 01d994c578e5e1942c4815e85651647/Completion/compinit#L491

<= /div>
zmodload -F zsh/zutil b:zstyle    # Load= `zstyle` builtin.

Hmm, I woul= dn't think this was necessary after compinit.
<= div>
No, but it is necessary _before_ compinit. And compinit e= ven has a style it checks and which should thus be set before running compin= it: https://github.com/zsh-user= s/zsh/blob/2cf6032a301d994c578e5e1942c4815e85651647/Completion/compinit#L566=


zstyle ':completion:*' completer _e= xpand _complete _history _correct _ignored

Did I miss the reason for removing _oldlist?

No, I didn=E2=80=99t give a reason. I tried o= ut both _list and _oldlist, but both seemed unnecessary to get the behavior I= =E2=80=99m after.

= --Apple-Mail-CF0858E9-0AB8-4D48-8045-84B41CE92D2A--