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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27454 invoked from network); 9 Feb 2021 06:01:06 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 06:01:06 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612850466; b=T/RWNFIT4cBWIv0HsrCmZ13RTsmF1Su4rAVNUUNzRPhzsgR/W2BMA2l+quddPxmC3AH2Rk3AC8 C5KUMUj57B3EQ2jG5u03UWf+8JVzA+qfJQOUHlNLm96CELE0S8j2foVMnLDff0eZlHNJ++IlyA Q811AQCAIUQ9ADn1SknZvZOjQgJ8URQzjLPTUMnCzEnH8+J+KeT1X2wP6FMRffhZ8ZCSnA2BGT 78i+CIRh2PYKmmAITWeU3a1auXaUfVR3o4m4bR3nog48uPrKeutx2OnPENr1bHFhHRcVzJQkc6 lgUTwd3mOChndAKiZdSPtvafjTr3o7NNQF4xlvig1NwsEg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oo1-f45.google.com) smtp.remote-ip=209.85.161.45; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 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-20200801; t=1612850466; bh=VxHbJsYJQ5zl0FI4oL2Jh5hhJq+y4hjlpBmH/SHV+jQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=yqgA+QFHI5Az2+BWYWCnckYZPoGDD8YKIYCtt+5soDmctmGenGLvpmMaOTI752QJkogO+oi2CM Z44EEwjRLZXJ/HkW8y3Gb7V+w+XFfLYgDoZn5Yx9w974/autFa2hzfL6ENbfiQHeZYV90al5GQ IjONnrIKdK+8TQaadgHhMZEUtmg4qjR5b1lVs/CnH/dHteQsbko5UeLrEHvwNk+Gvt1wBq6FWK H2aqIQAT8rKEqCOZkNeRiksjJ8eu4Y00YESYaAM4qzLNCshvx+2A+gDXkfs6RpBrSNWbEF+onw FxOUQ0jeKGt/oWRfMZGKhBhRXTxe20UhsdvWd2gy9tKMwg==; 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:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=KSgLU+S93cO7fvgHUKgQCpfWIIJuiA8bzHsCnmtgbcY=; b=JSfa2KTBFdQ8JvxnQr7QDkCcJA tUtVrwRwIFgAtf/dlzdw3QHiu+iR5cnM8MU0tIwWOU/cK7tTXbL15R5l6KMc6nm2usb2ZXYxz+Udf tXhaWn+9zLAipmdN9lR2Xlx4M8lmds0Cjf3GigbG+WDGsDRzx2M54Q1Ubx/n6OPZayZYzUvR52rYD MluD6r+wb/nq1eXkRmEa4dAQuncJBluneaFKZ4mFGQ26RhkdrZ8z+FEfUru9Zy49GcJ4Io865puWs Bo5Qr2E6CEykVZkCfAvFeWVxJuFY+xf+m9lQAfAu2+v/2HwK2mlnaB8j97zHPZqFe06qFaNwcTm4U C9BGoj4w==; Received: from authenticated user by zero.zsh.org with local id 1l9M59-000J5b-EC; Tue, 09 Feb 2021 06:01:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oo1-f45.google.com) smtp.remote-ip=209.85.161.45; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oo1-f45.google.com ([209.85.161.45]:33896) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9M4s-000Iwv-M4; Tue, 09 Feb 2021 06:00:48 +0000 Received: by mail-oo1-f45.google.com with SMTP id x23so4028635oop.1 for ; Mon, 08 Feb 2021 22:00:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KSgLU+S93cO7fvgHUKgQCpfWIIJuiA8bzHsCnmtgbcY=; b=NgFKQg0s3FrIFAjqnr1It/3EbWOtMTAGgYTUN3JmuwF8Ou5mm3HieU+8P8yeDW1Wod xgHB8rI5ZwTPjhkM8DYC1SfeZwpwm8PmVUyLVMujDBwqRtNc2VcyPF+wQPmg0bYUJNu3 THFLh3Vy6ji4eAk0iHyOPiCYMotuNaKk8ckV+to+gnAH4BwY9SkKjtciXu7uTExkiPbA TDa7I4LKl2ogH2A/O1RlJazacTKcM3tBptb+u6bbwdjRXHpIAyAW21jRMX35K61Xcqpg uAnu/lwOKP7voc4KGWHmZuVvSGxAzVMYL6t9wtFiIL4mgYNgfSyNEq0yNOUUUaAeSVF4 dmwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KSgLU+S93cO7fvgHUKgQCpfWIIJuiA8bzHsCnmtgbcY=; b=qc8dYT9h/H/plq34ccHaOUFz08+Cb8MFP9uoTfV9L7pSDwkMeyzZm1xNKh76ZBrCW1 ONk8OcZJyXKXjjVn/tdZUq5ITKdO6gilAZOmUwMcDjgtuKCG2TSGOajnFBqmV1/Cg5DM W3mocf6BQHwzWT44IpaAeF4NG2fhcghxQ+ZwgrdKbc/HLlzhnjOJg1f0lfvttd1FEiTQ 1DrmSsdX2I1sNR+WmzjEkYP5JJK7AceMcOvtJORmZE1vGAVnMik6IyePnFLB0MD7xkzv VJPoqrX4FWxgQ4rwV18ARHkZqhWUi9jbQS0ccMH/TQkZH6BUreyVpHx4R1MMheGU4VbF 07Qg== X-Gm-Message-State: AOAM531b29Gjp0V9K640dQrSRs0ToPXgCUQ27cD5AQCxy/BTG7rdrC36 P4RBepOGigxluzC99sp7U6k6tMgrIS/PHwaUDvcUBg== X-Google-Smtp-Source: ABdhPJyoDWjdfXz885BuqGz19AfHbr8sExyiPaRvReu/nUXYv9vCpcha+dPefPqtVCebYv7jh6rp29IEOa24/f5H4LA= X-Received: by 2002:a4a:b1c4:: with SMTP id j4mr7185919ooo.78.1612850445158; Mon, 08 Feb 2021 22:00:45 -0800 (PST) MIME-Version: 1.0 References: <0102017778f35f33-a962e4d3-83e9-4d3b-a0d7-45701bb40b11-000000@eu-west-1.amazonses.com> <8BA25288-0FFB-4FF4-9799-541D6A3C52DA@dana.is> <19996A10-103F-4054-AD57-FCED8E406687@dana.is> In-Reply-To: <19996A10-103F-4054-AD57-FCED8E406687@dana.is> From: Bart Schaefer Date: Mon, 8 Feb 2021 22:00:33 -0800 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: dana Cc: Marlon Richert , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47963 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: On Mon, Feb 8, 2021 at 8:51 PM dana wrote: > > > zstyle ':completion:*' cache-path "${XDG_CACHE_HOME:-$HOME/.cache}/zcompcache" > > compinit -d ${XDG_CACHE_HOME:-$HOME/.cache}/zcompdump > > I actually don't feel strongly about whether we respect XDGBDS or not. I feel about it a lot like I feel about POSIX compatibility. Read into that as you will. > * How should we handle systems that don't normally use XDGBDS? Should we just > force the issue and use it everywhere? Or should we have platform-specific > logic to fall back to ${ZDOTDIR:-$HOME}? I would recommend ${XDG_CACHE_HOME:-${ZDOTDIR:-$HOME/.cache}} or similar, now that you mention it. > * I think the spec says applications should create the directories if they > don't exist, right? So shouldn't we `mkdir -pm 0700` them (or the defaults) > if necessary? Thanks for catching that, yes. > * I like the right-hand prompt and use it myself, but one disadvantage it has > is that it makes it annoying to copy and paste from your terminal. I meant to mention setopt TRANSIENT_RPROMPT > [...] i foresee a possible future where heaps of novice > users are including these long irritating strings of white space in their > support requests. That's already a problem for some terminal types, especially when copy-pasting a completion menu or the like. > * I do like the idea of encoding the return status in the prompt. I don't feel > strongly about whether it's indicated by a colour, a symbol, and/or a > number. I'm pretty sure red/green is the most common type of > colour-blindness, though, so maybe a colour-only approach is not ideal. I use reverse-video for this. > * Whatever we pick for our prompt, should we maybe implement it using the > prompt-theme system? That would make it less "abandonware" as it was previously accused of being (tho if Debian uses it, it can't be considered completely abandoned). > > zstyle ':completion:*:(functions|parameters|users)' ignored-patterns '[[:punct:]]*[[:alnum:]]*' > > Not sure about this. I was a little puzzled by "user names beginning with punctuation" but let it go at the time. > > export -T LS_COLORS ls_colors > > export -T ZLS_COLORS zls_colors=( > > Nit-picking, but using export for this initially confused me. You're not > exporting them (and don't want to). I think you should just use typeset. Good catch.