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 27943 invoked from network); 10 Feb 2021 00:03:19 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Feb 2021 00:03:19 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612915399; b=seRyfwwlh7IYCA64kDW/QTqN9hNL5xR6GrFCZdtxtFEw6it9oCwFlVQskD3jfJlvO8mCIEWZhF lQA6LMVTbhNAwnNML/p0rI21wxlD61pEFpI91JEZeTIKOK+hgjK1s3D9HdUbAjjdbxCZT6pFnz ADenL0K4caK97sWqVP80EbZ2dNHtRvo3Ih7WBkj1JCpCHYSJMZCH1oviWM2NE86+bWLj9phmbw vPD+Clhn7JmEVrHpvbSydIoAPnorBozvhulBxQcTzb77AlAJQ2AeuI34tyegZ9Z2s8ij+rASvb yW78ApN+tPOt/w0z/v8Yzobf1ljWsHMtGdr5lNQi9xQ57w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f170.google.com) smtp.remote-ip=209.85.167.170; 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=1612915399; bh=iznGyIE/tQ//7+QepvBIO2WeLQVnhBVxzu3KQPbzY1A=; 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=NZNXXKW58dxYijaJ2WnHvxlZZjVzun998geZI7v6pCAYwpUmVVLlKJt8giG5YiFxQlVByeWVzy 7Vy2VS/ELBFDoOJZGEXnRq7rib/WX5XLJClVle+LT6UgExU5CeFUJyZsiSRb1iTNwM36LibSox ftuQFwxrFGd/DnZAP2eFl/imWdAFh7bC3Pvlw4/XZWXltJVltFNpnerwnFGVZRRsYVHrfWgE3i Wgb5kgcaqV0dErmmyhGgidgECuIGdZx64Zpz8SHEqeYIN5F0ahBg/Ba6IgiQkS5XdigVLocrtY 7dzMtvsjBiUshJXoAuv64lR0AK59VGbwtWiz01Lvyv9YnQ==; 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=pGCOdhOnPwqc0lUPjSbG4mUXfxfk+ve5/j3noUvCOFk=; b=vRHhUjJX84olnz4BVztx+Veb8Q /kmJ/kdZPl4gaz/2dpsCFWDHmde8ST/h5XtfwjUAfTB+jZHSTvjuMr8sIGgeOyQh/QsdIS/CN8fRW r4cqtUo5QX/gu8TOlMwyCrVoebmggYcQgON6LID6EVbIeHJ4Ob1vtC6lv/zR/Lr4AkgwthOeEK10D 6+w5p5stUxwsP+rvIWcNTQkdfg5+srQnsLxXDR84ISi6bsoTJZK8BMe4ibX0SKlImcLC0Jrgbe8iN DDueYUMTgjF6RYBq/VULDftWs25iPNz2HgNaQi0Mt1U/BFFp2ihK7CGigfue3ka1l0XzFKTk8ia/q H6Ju9C4g==; Received: from authenticated user by zero.zsh.org with local id 1l9cyS-0002oN-Dv; Wed, 10 Feb 2021 00:03:16 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f170.google.com) smtp.remote-ip=209.85.167.170; 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-oi1-f170.google.com ([209.85.167.170]:37884) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9cy9-0002e5-Mt; Wed, 10 Feb 2021 00:02:58 +0000 Received: by mail-oi1-f170.google.com with SMTP id y199so113874oia.4 for ; Tue, 09 Feb 2021 16:02:57 -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=pGCOdhOnPwqc0lUPjSbG4mUXfxfk+ve5/j3noUvCOFk=; b=1AH2YovoeS2TRaS/DZAYbvGNpnq1s3ZzWjdy2/+qbm3FQ3CadbgGCO8a6pdinriQGp qSGqNakjxot/y7G040oEL9bcycv4QkzxtieT8qC6BKl2l8XDwX7dWBS2wLg5c/03ZTfz z/DzrD0Qh99D+vF57/H4i00y2C4QVLOj3jE5EmTgT+jeOgePSpk+i4seT+9Yyv3sGJya hHtdvdkKZgjz+JVG1h7L8M0h7vC9HNb0BWRDJLvDbehUIMRNrQhVlH1hDT8EGzg4QZAJ BkUcZm0lBXtCQ5Qrs0JdJPXohcDdmC1YDg/A48tZNF0tkJ4KlrSv8wLNp5J+j/hA961S clpw== 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=pGCOdhOnPwqc0lUPjSbG4mUXfxfk+ve5/j3noUvCOFk=; b=Ga/QLtYWXKKiP7n98h/w7Lo4UFbqd3mRIdYxHV9SXihj3DlwdSaAtXG7WMgynQAFuQ M5nIrjidb6RLXfX3qs0eP/cWHHsifzCIwVtQc2euc37Xq28hGZQBUzXf1CsC1+/hUpcu vaLzubb2FMzEBFnAOm8ACGpTfmcNzfKQEPryMxejGvBC3/bzjpnjbDenF73JtzmbHJMM YprDvhFQDLmqXsXZRoXG8nl/+ABrX9QGoakfHvXFy1KTqBNlhduGfssYSqGUv4WDkUxZ +bL/jweVxtNDlVnXPt0u4OYa/nOYUYNDE9DT1ROSbXQdrlEouOf9gPDTpAsff+VLjpmK UPPg== X-Gm-Message-State: AOAM5316bcveik90sfeV9epCmGhjRCYxEHlzL1H2qxTCydCz5MlS0Xmi wYSdbvU0Rk7ULYzBvpTD17erKVEMFlUU42EwEGjoVQ== X-Google-Smtp-Source: ABdhPJwh6jkqUtEIByWO3bIkAHabdtqqhJ3q2Grqxy6GH6zLzVYbhJmFSJyl/Tl2i3QuRBDvjMyelTj9/Fn3j2pFU64= X-Received: by 2002:aca:808:: with SMTP id 8mr197604oii.84.1612915375441; Tue, 09 Feb 2021 16:02:55 -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> <86782FA5-6EBB-4FCD-90AD-D33F352455F1@dana.is> <5C018E61-8E72-4647-8A53-0F9D5BB82146@dana.is> In-Reply-To: <5C018E61-8E72-4647-8A53-0F9D5BB82146@dana.is> From: Bart Schaefer Date: Tue, 9 Feb 2021 16:02:44 -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: 47989 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: I'll reply to this first and then look at the file itself when I have more time ... On Tue, Feb 9, 2021 at 3:15 PM dana wrote: > > > zmodload -F zsh/files b:zf_mkdir > > Then again, if you don't have the files module you probably don't have the > newuser module either, so it's *probably* fine...? This ends up being something for a package maintainer ... I think it's OK to assume the existence of most of the standard modules, the exceptions being e.g. zsh/cap, zsh/clone, zsh/pcre > > PS1='%F{magenta}%$(( [#10] .2 * COLUMNS ))>..>%n%f@%F{cyan}%M%f%>>:' > > PS1+='%B%F{blue}%$(( [#10] .2 * COLUMNS ))<..<%~%b%<< ' I'm one of those people who don't like PROMPT_SUBST. > > PS1+='%(?,%F{green},%F{black}%K{red})%#%f%k ' > > I like this, seems like a nice accessibility compromise The black % on red background just disappears for me, it looks like the prompt just ends in a red block. %F{white} maybe? > > RPS1=' %(1S,%S${SECONDS}s%s ,)%w %T' > > Again the time stamp actually feels *less* useful with transient RPROMPT Also, you can get the elapsed time from something like ${${=$(fc -lD -1)}[2]} instead of constantly resetting/reading $SECONDS (are the fractional seconds really necessary?) > > :zshrc:timer() { SECONDS=0 } (see above) > This function naming convention is OK with me. I guess it's OK with me too. > > # If $LS_COLORS hasn't been defined, try to generate it. > > Again, is this our business? > > And if it's *not* our business, i think we should take care to avoid making it > appear set when it wasn't already. Agree. > (I'm not sure if the recent 'declared null' > stuff impacts this [...]) Not in native zsh mode in any case. > > 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. Agree about (not) CHASE_LINKS. > > unsetopt CASE_GLOB > > setopt EXTENDED_GLOB > > I like NO_CASE_GLOB. I don't. See the discussion leading up to my CASE_PATHS patch ... NO_CASE_GLOB can cause globs that should succeed to fail, and globs that should find a single result to return multiple results. >I also personally like EXTENDED_GLOB, but i wonder if > others will object? I'm ambivalent. I don't use it (have a wrapper function that enables it when I need it, and hmm I just thought of what might be a better way to do that) but it doesn't really cause that much issue if you don't use the syntax. > > setopt GLOB_DOTS > > Don't like that, seems unexpected and risky Agree. > > setopt GLOB_STAR_SHORT > > setopt NUMERIC_GLOB_SORT > > Ambivalent Me too. I'm beginning to think I might like GLOB_STAR_SHORT but I don't yet use it. > > 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 I personally do use NO_CLOBBER, but I abstain from the decision here. > > 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 I like NO_FLOW_CONTROL, but I dislike INTERACTIVE_COMMENTS. Not strongly enough in the latter case to argue.