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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15936 invoked from network); 2 Sep 2022 13:55:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 13:55:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662126901; b=C+Tkv79VwicEl4lzZfOLxcOuMzgGOxZYQxKXi/es5j45jp0/bFWdFE/YuM9xWiZ1gxxIh51kET WE5BsVVIqRTJfvAKE1W8w/6OJf2moTOigzFIpyRl7Z88KeJLcqNBRTf69zMiF4kSzRHn6qBUoV Dci0YYs5MJeLxMDHC3bc6mB1pk05iMnWNNqUbu0S0fiozNSIvQjWp4yWULuBOYNRLxavw2uDbA Gh2zQalj+MJI/FXUKsMPTCiTCdfdr2D5qB85Ca9XC1tfoK+6Nru2IYJZrjNDM3rGf2Kn5MxQST hh9rNlk7tWBr+ADlhDbOkswAD2+qM51J22qAw7d8VCxZBA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f47.google.com) smtp.remote-ip=209.85.208.47; dkim=pass header.d=gmail.com header.s=20210112 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-20210803; t=1662126901; bh=jCGUsxOVIuMYNZ1lbo6ozSniMbuDAM6mcNsnRNrX1no=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=EpWpA9oLvReJLOrMKaiu6NcWE8NWp3MVwPdz4mwNCkzkyZdaSMgJYvAaWvtyMiiJYFEvcefHhf ufmAhykBhsqHvvw/ka2n+RI55IyS4YHo0F8vp1fCt1gLniBj7WL6tVHx97bX0KeujAQ3zxI3up v733RgBQMyj3/qkKiUlbhIxS4oRyPf9i/jpZMd9AJc4mFihYWs9g4MsC8+Qtkpewi8QCK7S3TG DKLxRTKepSJjgxXyqzNzkLSGQ1V1haPlJBgxMShY5H2igUGLX149j0eLYUsN8aTp5W0NS+0NO+ jqxjV0+miJlQI/G4ib5Xy2rdZuGIECFvmk3KRW2X8mGGCA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=YYmmpLMMAHlxmDxtlTXMN5sSdhcDWcemGSKEsQJ2eyQ=; b=rxcS/y8kGE014lrKo7ehv/jxcW /driqnZq3uM/kYjGX7N3K4JZEOKm2Dfg7M8kzTCq2JRarNoynw9ISdjMB3IMuG5Gsxw0CHmV1EGhK kgteDscYtP0qEZ6R9KxIvmZY6PpMCIOqwzsaxgeiXTLI5JR0jIGUcihEFmZbCX2g2aOR5kYYMpMhS Vh7YzVOZo+9O8jrv2ee60wVY9UCH5xxk3dQqNeNZ86aY+qhW3pmG/0bRFZZUSerr1bEDp7Icadsvy 8KhIKVgV8Lfpzfi2O1+HzyqMebOJr4DiZLpmYuROZyIMT3AZfrSXdbq/+Rg96A4qhO2D4sYWDWwWe zy4ic4wQ==; Received: from authenticated user by zero.zsh.org with local id 1oU78O-000Hox-Im; Fri, 02 Sep 2022 13:55:00 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f47.google.com) smtp.remote-ip=209.85.208.47; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f47.google.com ([209.85.208.47]:34584) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oU786-000HTe-Dn; Fri, 02 Sep 2022 13:54:42 +0000 Received: by mail-ed1-f47.google.com with SMTP id z2so2830467edc.1 for ; Fri, 02 Sep 2022 06:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=YYmmpLMMAHlxmDxtlTXMN5sSdhcDWcemGSKEsQJ2eyQ=; b=YW70CO/q5BUVRs6/HGRRvvwj2BBdqKML1gGqszkEuE32/0YtcKmlPxskDqjraX5pjM wenHNfJ5Bzz4tuAJw6FZvAk7arhnpD2ISNcr8c2VQBcraatrEio46o0UBY+aUuLi/24t Xvh3NhQWG/RF4eBq+06lkKhP+K8mJsnlhp92fZcmB2oqfGhDsAbCMYf7eClbEqMxcEsR TN83v0aWvAqJ4KOsGmjxuhU57BJ+f6F6tGE6XSU8PHjnehq6I3S19RBx9EzqNeWPzwCM f/sTb4aMzL1tmdtrRP3UiVAmRIm4MtBcfRebViC0nP1Hg+oDkY2E022It026eg+o2aBr hdXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=YYmmpLMMAHlxmDxtlTXMN5sSdhcDWcemGSKEsQJ2eyQ=; b=yOKVg0mYdlL19G16YDhTLYWArbKXu3VXiRrmibXorfGI73RO4AhqK85VaqKDorY6L8 xQ2S4nL6gsQkcq4YgK+sy1k+IBt+GsTgNqxkPPQ8HXub4rnPpjE0kgM0lWKNxlp3WLiu ZqNFaebMpIG+nqCQI5PBPvs7nw4TdA90vyZOei8ZZp4dG0iN9cYmvWM9CfhzZmmDyYBo lU2COUk+EXKvXXHQBRHi3j+sCNHuDKMhZOmyqYEOeF76LcT9MfYnBS4hr0mZEvep6Xx1 ahiYj0uDCovomNEfz7VYcjzRIL9b8wHGpp1h3Oz2hNxH1klbu9sY6cwefBM1pXb1rsO2 3AQQ== X-Gm-Message-State: ACgBeo27Ed3XFbfhGaR62n6gZdW7tlVHgiETpoTqjuCeodj4+SdzmGDE fy8lYuOOXjEjNVD+0zywQaKAW/FS6j3UP0pfZQ4JH2/ivVI= X-Google-Smtp-Source: AA6agR6UzV9D96Z0usFQ+gEMPN/X15kqe7GT6w6Dsf0t1l6Xsu9gK2paLNFUYbJ0Ocy//n78UR1zK16EmyhYuamcsG8= X-Received: by 2002:aa7:df8c:0:b0:448:a9a0:5fd8 with SMTP id b12-20020aa7df8c000000b00448a9a05fd8mr17131816edy.244.1662126881710; Fri, 02 Sep 2022 06:54:41 -0700 (PDT) MIME-Version: 1.0 References: <20220902091857.GH5920@tarpaulin.shahaf.local2> <20220902125029.GB255755@cventin.lip.ens-lyon.fr> <20220902134735.GE255755@cventin.lip.ens-lyon.fr> In-Reply-To: <20220902134735.GE255755@cventin.lip.ens-lyon.fr> From: Felipe Contreras Date: Fri, 2 Sep 2022 08:54:28 -0500 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50586 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: On Fri, Sep 2, 2022 at 8:47 AM Vincent Lefevre wrote: > > On 2022-09-02 08:28:01 -0500, Felipe Contreras wrote: > > On Fri, Sep 2, 2022 at 7:50 AM Vincent Lefevre wrote: > > > > > > On 2022-09-02 09:18:57 +0000, Daniel Shahaf wrote: > > > > Mikael Magnusson wrote on Fri, Sep 02, 2022 at 05:46:12 +0200: > > > > > On 9/2/22, Felipe Contreras wrote: > > > > > > It is unreasonable to force absolutely every new user to set these > > > > > > options just to get started. > > > > > > > > > > "Paste these lines in .zshrc to enable history" is not more > > > > > complicated with 3 lines than 1, however much you want to argue that > > > > > it is. They still need to find the line(s) to copy in the first place > > > > > (or god forbid, read the documentation). > > > > > > > > Copy-pasting three lines is as easy as one, sure. /Understanding/ them, > > > > however, is a different kettle of fish. If one has set three special > > > > variables, then one needs to read three zshparam(1) entries rather than > > > > one. > > > > > > Isn't $SAVEHIST equal to $HISTSIZE in most configurations? > > > > > > In such a case, couldn't a negative value for $SAVEHIST mean that > > > it should be regarded as SAVEHIST=$HISTSIZE (dynamically)? > > > > > > Then I think that -1 could be the default value for SAVEHIST. > > > So only HISTFILE and HISTSIZE would be needed in the .zshrc, > > > and they are self-explanatory for the end user. > > > > This is precisely what I proposed in the previous patch: > > > > https://www.zsh.org/mla/workers/2022/msg00830.html > > Perhaps, but then, I think that your patch description > "Make SAVEHIST default to HISTSIZE" is wrong, or at least > the patch lacks a multiline description. Moreover, an update > of the man pages would be necessary. It wasn't a "true" patch, it was a Request for Comments patch. After the comments it's clear doing this at this point creates too much noise. That's why I decided to focus on increasing the default of HISTFILE first. I might send a true patch for this after that, but first things first. -- Felipe Contreras