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 6098 invoked from network); 9 Feb 2021 07:31:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 07:31:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612855874; b=oZmTlcIHD3ALvwdniwmYEVG1505er57vp+sHgpdfTXjF3ifasTnVBj0KoOtPOHnHrCy7smwbVa XhfSZQvFIvT2pGg0ZAPYrGMfynvdkCYQ/bYl4xPku7yRfJVigTj2LwNgLCWoSxHdDbj9iVonD/ iIbB0K+wZ/tSWn7oD7T2pWuyIW//FQ29ZFEfpNVlnXs+8gKVdgEH/lrT+IIKZbxQmAziJ2Sf9X 7heOqY95PkOpUELD/QQp0ZajJOorJJtUKhGpGPJgpTrEunm3W/Bj067qCBStyXp0aZ9ehmPwGq OYwRBnC6jvIo6qAlAGB2x5OMTlb9DNFGw9byRvCoKJvUVw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f174.google.com) smtp.remote-ip=209.85.166.174; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612855874; bh=4XAK1u2VfW+zIpahz/akdSTZJT/rZmgzaBjJvxyWouA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature; b=XNooKNnAo7BKYPHMYOqWRpHON+pcGtsnpAVUQmEt9/A7MGXs/o2Ufot1jHG062B9lBVCFcRmd8 jRV6pIVXJ4IEUflFKrUCzpO3/aT91chzFjuHtvA4EDOHqZ+6U1kt24cIuaxxYf7d+SLI01rTrh cuc5x1U5zYChOQanT3Oa5Du8fsSmQRCLMk7OMV7LzoH+QrI4Z3s5joA5X9U7FmJpNvauZQU3Ju MM24TxVekLN7Lkm9j/ufKWY09T1fwOojcTZCzxdvGJLVTF4y8ApKLAC2uoNe22XtTPOyNgHssw jKFPVA/TYMcDbHz60GmPvVIZ2FHl9QEOrgrEAUnNlZUd9g==; 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:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=K84mKQO8a09Y1p+VjNcgktAdtihAP2Tp3W6uZj8LwVw=; b=u6fzyBu8duqg1Kx2Uv4Hr80iz1 7d6NMtCvAM7tFlF7ha6/2dpEptDXSEWgUBjdZD/2mQqKsRZecd9DXgtPtmCKB8DR5pVeExxqmO7+K AWoUbxQtQAcSCrmmVGH91kcHycUJ9hdAzIIJh5jrESxh1wOHSEehSD1rWam9tpFqu8FbZtTJBv9by hIz01yZsaw5vPYzdsS4YYR+iljzWnoVj4/2O0vAOl7d9/3s3pVnAhvevVkcD5tV3eZccb9F4Vfd1b d+R2sCM0RE+Q03mJ94lsn5iGQ0S2lYLv3i4vlnvm12XPt606/OL9djhwhWebGWPI1tjlTLCCBpqRb Sd2IYY8Q==; Received: from authenticated user by zero.zsh.org with local id 1l9NUN-000LQE-MK; Tue, 09 Feb 2021 07:31:11 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f174.google.com) smtp.remote-ip=209.85.166.174; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from mail-il1-f174.google.com ([209.85.166.174]:32774) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9NU9-000LIA-9u; Tue, 09 Feb 2021 07:30:57 +0000 Received: by mail-il1-f174.google.com with SMTP id e1so15283288ilu.0 for ; Mon, 08 Feb 2021 23:30:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K84mKQO8a09Y1p+VjNcgktAdtihAP2Tp3W6uZj8LwVw=; b=xs8tx74VhMRNUrsW/l+f+/p57d99uXo1Zi+euqXE/j6afMSYnIGqsBXbZPnBm1YjzY ToHQlpIKwy1r24Y9FnZcGq8aD/gClK7aC9KwVmgyWoM0JjcPXOj7p0bOqmokXX3QutxJ rlcR5eaojR/Mcy3ESu0c7Sc6Em9iBufJ/TCK/bPKsNg4/0nsSxekJZil4v5IkierD6Y9 QL5GQPY7QKwhvbw3EbtLjJzn65MPZIl8FAZM7ETxZQ5yBFAMDTpXBT2zExA1cJhv25Lj ilGCDWsQl8r+waGAnfaspzSruzfl4s6ZAYLDXsrF0uJTldC8AEozSz3htzP99bLIj6PR 8Hpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=K84mKQO8a09Y1p+VjNcgktAdtihAP2Tp3W6uZj8LwVw=; b=qQrUUlvjycp5LAy6PSQ/EUM+/+HagpFN2wNovmKzQ9/ytolMHIUwGSt4NIqYSqMWpK AZwIcifTuiPxgEltIFu1KJX/j6nKNcLvueB3T2BaRIhVFa+zV2mosZLt1cyTc1bsZI9U No8g/DEN7jjbTkzx2bxtLDQcd4FXOmU5ZG3ZmoMhOyfxITpeqsh93tSsJWf3etgwWGaJ XNE06lmV/tmuPM5a6xAQ3kCAkcTvG2itbbilihmCfZ2taYRmiwllinxxcHEEqvfQnp99 4px6UPyh2JqX59YJJw78dNGfYw3ZH+sOepd3iRUZnH3xCDyqw6Gs60ZOehGIG1nyD6Me akqg== X-Gm-Message-State: AOAM530eHP08G6+UQpFYpdS7yy8xPtp1A+KAV2TYEpBpVzndSq+gL+Cy vvICU1PkfQTX7OEKOvWvZdPvqQ== X-Google-Smtp-Source: ABdhPJxNLGn4lqfD5FZOILnbhqaHj0DCzg8Vecr7FPMbni8jd+Y7zZu066t15u1QrHlC8pebijIlRA== X-Received: by 2002:a92:b00d:: with SMTP id x13mr18833269ilh.128.1612855855874; Mon, 08 Feb 2021 23:30:55 -0800 (PST) Received: from heartswap.lan.dana.is (173-17-84-59.client.mchsi.com. [173.17.84.59]) by smtp.gmail.com with ESMTPSA id e1sm10029807iod.17.2021.02.08.23.30.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2021 23:30:55 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Rewrite of zsh-newuser-install From: dana In-Reply-To: Date: Tue, 9 Feb 2021 01:30:54 -0600 Cc: Marlon Richert , Zsh hackers list Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: Bart Schaefer X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 47964 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 9 Feb 2021, at 00:00, Bart Schaefer = wrote: > I feel about it a lot like I feel about POSIX compatibility. Read > into that as you will. =F0=9F=A4=94 On 9 Feb 2021, at 00:00, Bart Schaefer = wrote: >> * 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. Actually i think the standard is referring to creating application *sub-directories* under the base ones (e.g., $XDG_CACHE_HOME/zsh). I = guess that's the usual way to do it. But yeah, either way we'd probably need = to handle directory creation if we weren't going to just use = ${ZDOTDIR:-$HOME}. On 9 Feb 2021, at 00:00, Bart Schaefer = wrote: > setopt TRANSIENT_RPROMPT I wonder if that makes the proposed RPROMPT more or less useful though. = The thinking behind it seemed like you'd have the time there as an = historical record, and if you made it transient you'd only have the time the last = command finished executing / the current prompt appeared. And if you're in = screen/tmux or a graphical terminal, you probably already have a clock, so.... On 9 Feb 2021, at 00:00, Bart Schaefer = wrote: > I was a little puzzled by "user names beginning with punctuation" but > let it go at the time. I actually do hide them myself, because macOS has a huge amount of irrelevant-to-me system users with names like _timed and _hidd. I'm just = not sure if it's a good idea for every user on every platform. btw: An improvement to the (Z)LS_COLORS stuff would be to source from dircolors where available. Debian just do `eval "$(dircolors -b)"`, but = that overrides/exports LS_COLORS, and i'm not sure we want to be in the = business of screwing with parameters that don't belong to the shell. (Now that i = think of it, even just doing the LS_COLORS tie command could cause later profile additions to falsely assume that LS_COLORS was set by the user.) Maybe something like this (untested): typeset -T ZLS_COLORS zls_colors=3D( 'any defaults here' ) if (( $+LS_COLORS )) || (( ! $+commands[dircolors] )); then typeset -T LS_COLORS ls_colors zls_colors+=3D( $ls_colors ) else zls_colors+=3D( ${(s<:>):-"$( eval "$( dircolors -b )"; print -r - $LS_COLORS )"} ) fi Not sure if it's worth checking for gdircolors (Homebrew name), but = that's a thought too dana