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 22757 invoked from network); 9 Feb 2021 23:15:50 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 23:15:50 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612912550; b=PGjMCotNMlINKq5/Z2fhTYWv2Xh1yIDlG3fJ7iVgkYHwpLEiDURbFHfOgD/1mBT3y5CXCTK94C gSfSOCvCaK8ar9rlRC3a8I17QTHU8Xsq2pIM6dE1Xpid634hoKKcdMkiBYT3m6ftIM7JdbAMNE cLlBqKqdBfbQbh4YiqwFB0JS8/XGpkuXy/onTSEMW39hxWr3Vr7B7FZnPbo07Gyj6JWAxXWY/D C02nWQ9SsHdSeWfBZ60eEFms5OV5Be9T46JYWayhDxmTHqGgrapYKJactyNhxWMV6i4YaoKKNM eFwFn9GJotlaKqJeB4BvDNnvPN7WpuioklXHYtFAOvYUcw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f45.google.com) smtp.remote-ip=209.85.166.45; 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=1612912550; bh=XafveopIQTaHdmeO1HsZNdckCkSUQ0BCvaQltCwfQ3M=; 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=Yttun+h9RCUNRxaOcxdArbPtmha48d65exGavu/oxhsyNx1fLYsSeMCYWejaZ01CumpcSh6D9y Ixs3KyaDs9P+OPcjiHE6pr+pjgq3foB3qIzeVlcLbU1z2/YrzBB0j4abOzVxZ60lgXdUNEKkBe HKT7ZipJaa7GAFPc/CfCJX46ON81Nw4ZQB0X0mz4zNlQHM7YqYMPGQlacuZNDPArAIflCP37W0 l826Q1b8aT2UVzDyM2Mii3Fe95kqdKzp6iNBOw1DH/R2wtqLIXWe9FPZ2nn9n3ZaqGc9oA/xZZ gvdg0t1+oiVU1Y1sIcA6Ek7iXkKPjZdkr6U45EQ5PamZ6Q==; 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=XafveopIQTaHdmeO1HsZNdckCkSUQ0BCvaQltCwfQ3M=; b=QpT7EpahB+exH53FNbOGSael01 4ekNZ+fL/06IvOBvyAbDhIuEhIK6aXXRa02g/bWAMQSUAjWHTcDiyiebXnhtRYfNRGJqyIwkTtsSL 37Io86paBX8mi8a97j2pjUAnFSFnreoD81d5eqgJj7lDpdr2/GS0Eqc1+LuCWMhtfy/UnsIJzJS4z DIUuwhLqrfWFctRqka0F9MsQDgaCprYiHVrz0AIT73Z+0cZBDefBiq+c+fAznGICGCW4Ayre6N+3S 3o53+rJ8sGYpx9i0bi20l+8q4fzEkLU8gf8hoptmzMes/pp+Y1SMabDeZzWxjAB61/1UBxLdBeoJ6 xMlGDOZA==; Received: from authenticated user by zero.zsh.org with local id 1l9cET-0000aX-LR; Tue, 09 Feb 2021 23:15:45 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f45.google.com) smtp.remote-ip=209.85.166.45; 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-io1-f45.google.com ([209.85.166.45]:36916) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9cEI-0000Rn-Ar; Tue, 09 Feb 2021 23:15:34 +0000 Received: by mail-io1-f45.google.com with SMTP id m17so10102458ioy.4 for ; Tue, 09 Feb 2021 15:15:34 -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=XafveopIQTaHdmeO1HsZNdckCkSUQ0BCvaQltCwfQ3M=; b=Y2rNfwYAcnssSTQCidYnGB4iQtwP0hmcuEMJztI5oIHEi5cdcKTwjs5BAmWyx4DU02 zcYTefm45rnyAqxcxvAOFqgnJDjQ0LLI96P8pB5DEj2C8nXf1Y1pHh7y9/UZIZ4h8d+x CTA4fspxsM+PDOXZxVFYrBk12W+bRx6OG4YWYsiWHzksLAAacSaEV4kRz3cS/imTL5JV Ns/XBBYxH77rbX8vs3EcvRuxI4ExmU15njUvahOBPQKFWu1eZcjzUdl6cCHrKOFEHyqe 1tfB7limEkM2Yi5ZT+x8qtpcuPFQjRY1P/9WMIiGY6MhWUFhZwSeR3Pboi+Z1nZ1QUGK LSlQ== 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=XafveopIQTaHdmeO1HsZNdckCkSUQ0BCvaQltCwfQ3M=; b=IJ4FCu5oTGLSwKHH52Ygqh9s8CqPIuj9a2zDOawz985jvhW+PPIglRQLLNKp8gFMaO uCTeVmtaEw1wdxV1+okWFcHJcCuqulai+tvvOEuZuXm8XDotBX2XP4TGqkyxiPCMraIV UPaKc+d4SSEoEhpPePNiNFvrUel1KkqfDEYNWFjDOgR8sfrKzr/OQL294q3ZB/X7PzID IGafp39yi4zJ7aIQKeuRJGqwN9NroSddBZkiZh1RsI6Kq/3iPHmpF4jmn3m9DXjfha64 Hf2vWtllXWSbrUFCo8N0e4T872GqLif6/RmgYnYx2Xu+LGYevRAk00p4X48/K8TzEWEh U9eg== X-Gm-Message-State: AOAM5309tf2rnXy8vgVg5T0s3LOQS4pPRqWXreaBS/webmCMj1eRlXMI Vl5dhvQcHnoOn0wxUiamBt6cvg== X-Google-Smtp-Source: ABdhPJxl3uh90wfLE4eijTjpqJq+xPKcPF1r93Wa8V8NUtMUHjjYTtO5LeTQDg4yb/I7cXE7y3WGXA== X-Received: by 2002:a05:6638:1909:: with SMTP id p9mr281616jal.53.1612912533235; Tue, 09 Feb 2021 15:15:33 -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 j25sm67743iog.27.2021.02.09.15.15.32 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2021 15:15:32 -0800 (PST) Content-Type: text/plain; charset=us-ascii 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 17:15:31 -0600 Cc: Zsh hackers list Content-Transfer-Encoding: quoted-printable Message-Id: <5C018E61-8E72-4647-8A53-0F9D5BB82146@dana.is> 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> <86782FA5-6EBB-4FCD-90AD-D33F352455F1@dana.is> To: Marlon Richert X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 47987 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 15:41, Marlon Richert = wrote: > More feedback welcome. :) Thanks > zmodload -F zsh/files b:zf_mkdir afaik this module isn't guaranteed to be available. In most cases it = will be, but i've mentioned on here before my adventures with zsh on ipkg/opkg = systems. Then again, if you don't have the files module you probably don't have = the newuser module either, so it's *probably* fine...? > setopt INC_APPEND_HISTORY_TIME > setopt HIST_EXPIRE_DUPS_FIRST No objections to these personally > PS1=3D'%F{magenta}%$(( [#10] .2 * COLUMNS ))>..>%n%f@%F{cyan}%M%f%>>:' > PS1+=3D'%B%F{blue}%$(( [#10] .2 * COLUMNS ))<..<%~%b%<< ' The %M (instead of %m) feels excessive. Ellipses have three dots, not = two (see below also) > PS1+=3D'%(?,%F{green},%F{black}%K{red})%#%f%k ' I like this, seems like a nice accessibility compromise > RPS1=3D' %(1S,%S${SECONDS}s%s ,)%w %T' Again the time stamp actually feels *less* useful with transient RPROMPT = than it already did to me, and i'm also not sure if the average user really = wants the execution time, but i'll go along with however the others feel (see = below also) > setopt PROMPT_SUBST I think most of the devs discourage PROMPT_SUBST. If nothing else it = feels a bit advanced for what we're trying to achieve here > :zshrc:timer() { SECONDS=3D0 } This function naming convention is OK with me. But i don't like the = behaviour, it renders the manual's explanation of SECONDS confusingly false and it = will cause problems for people who want to use it for timing other things > # If $LS_COLORS hasn't been defined, try to generate it. Again, is this our business? I'm OK with *using* LS_COLORS/dircolors = when available, but *setting* it? This is an environment variable for a = third-party tool. It's one thing for a distro packager to do it, but i'm not sure we = as shell devs should mess with it. Otherwise, why not set their GREP_COLORS = and whatever else too? And if it's *not* our business, i think we should take care to avoid = making it appear set when it wasn't already. (I'm not sure if the recent 'declared = null' stuff impacts this, haven't updated in a bit, but in 5.8 `typeset -T` = will cause e.g. $+LS_COLORS to yield 1) > zstyle ':completion:*' cache-path "$_zcachedir/compcache" This should be $zcachedir, right? > zf_mkdir -pm 0700 $zcachedir I'm sure nobody will ever do ZDOTDIR=3D-foo but just in case we can = probably add the -- to these mkdirs. All the XDGBDS stuff makes sense to me otherwise > setopt AUTO_CD ... I know some of these cd settings are OMZ defaults. I'm ambivalent about = most of them, but i don't think i like CHASE_LINKS. It can cause people who = are used to the standard behaviour (used by other shells afaik?) to lose = track of where they are. But let's see what everyone else thinks > unsetopt CASE_GLOB > setopt EXTENDED_GLOB I like NO_CASE_GLOB. I also personally like EXTENDED_GLOB, but i wonder = if others will object? It's actually not an OMZ default, i don't think, = possibly because it confuses bash converts > setopt GLOB_DOTS Don't like that, seems unexpected and risky > setopt GLOB_STAR_SHORT > setopt NUMERIC_GLOB_SORT Ambivalent > unsetopt CLOBBER Mixed feelings. I know a lot of power users like this, and i see the = appeal, but it contradicts a lot of defaults and historical conventions > unsetopt FLOW_CONTROL > setopt INTERACTIVE_COMMENTS I like these. Doubt the average user needs flow-control sequences, and interactive comments matches the default bash and OMZ behaviour dana