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 12886 invoked from network); 2 Sep 2022 13:29:02 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 13:29:02 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662125342; b=gDIDnfuq7DjDyg5Ecy1BgPXkSqNCDMYvLLQXulu+r4n6hXy1GL2zYLldO3lof4cKcAlpFmD7Ae gyOaRpppKpZFML1WCHAL8ptoVkdqK55Bd/e33iDauE4lRVyfh7gTEh5E2OIYPWFjQf0jdTjr/M rO3TPhILe3t65Uu8ObJoXv0GA3Wl4eB3avjz2f1XOiFa7Tx9Hsc2fCoZClkYbNUav+2wP5GufL tGCi+Z2UVxpwytNxkpsdO7gAT0/7uoEjYHyg5b5L5gU0FKI60gKf9hKBWQrUGdVLeIWlTuNs1a 8Ctu2sliMDboH2OHy/qDIjQm/HU7YTBhW1OVaks87HmiGQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; 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=1662125342; bh=3rOQoI+ELAQjKFLkc/K+HRyyTEoA8XVwitpl2jPwYUc=; 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=XRUhLD21argWWE+z6KY25pbfNQWJ3xuRCw42Zx9hRX4nAsocJnGlIkijDE80+13GXEh3uIKtQD gaVP/fCXXWwTaseI58YqYB57A8gkTIGB66OpvKe9WLFXSHdZzklyVexoto1eUEKdgUeF0DIGn7 22MrIFxUs1LQpFzl+K/TfNZ0McjMYCy6NFzHJnAKtulem+IbJZkMXYKHgmmG4uu89Xx2Gg/Gzm 6VyWqv97QzKZM/exsosrkYpJTcJMJukS7NQpJ1+zYJYFKU3Am3LUmhTs6XQjtiVHxDLmNl9ocg 4qHn2ehHrC1BjapxVP7jxlzBDTOiofJioMA182/w89DTDw==; 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=xiQoHuCUkZTLxnmDVvLiM8Gg4yVwPwUICoA8Rwv6ilI=; b=UWIy7arU5P1OYfkTAKlbfe8yFM c3XWgP0xXnoDqceDzNDXBTeRNSPWslLT2OnUvrzTyLPzLHw2HtMF2qu6+pvw/KhNpsD4rs8i19Kae DVdlgFEVkNTWOdTyMI5AkeRZvKL8IfspIHcVAcAO4X9PA5uA/TKaPX2Itx4O0Kn0LAPHf2e+lxfsY TT6RXL8EZjaBjlHo3/sfZe7LyLbv7A2bdKS+2D89gJNt6KNaPLZtnPU9THOjOsoA8Fq8uKReNzclQ ZMyCTCcMkGoXqiB5qKhkNfy6Vn8b6bQb9FYwZZs0p3C+P7mHEgeRMHWizonc9pScpjnbeeoWCMoZR VlI/oWnQ==; Received: from authenticated user by zero.zsh.org with local id 1oU6jG-000Cxm-Hg; Fri, 02 Sep 2022 13:29:02 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f49.google.com) smtp.remote-ip=209.85.218.49; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ej1-f49.google.com ([209.85.218.49]:33426) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oU6iU-000CeS-Hy; Fri, 02 Sep 2022 13:28:15 +0000 Received: by mail-ej1-f49.google.com with SMTP id cu2so3989608ejb.0 for ; Fri, 02 Sep 2022 06:28:14 -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=xiQoHuCUkZTLxnmDVvLiM8Gg4yVwPwUICoA8Rwv6ilI=; b=Hl11Pkms5t7V33vd/gsFi7I0kdrmwuhJeSi26pik5yHkJj2al6lKqq52XVb0CqneMC 03o0eR2Vl7wjIlPuM9rSfMAybj9PHcrI/cwwIksupSQ9YTDXd94XNU+0+ZeverMKi1p5 ITE/uZN4yrW02eR1Lqb+s4hR5ANgkaNcU+Br54KpPIUtAzJujxoeMcpDdd6b2Np9Ptoo Fh5CqkwB8zSrf+BCHae8CDv6ZcV7rdJPkJuiDem0AyHY9uoYmkS9MiBySz2ZpvtvhbBi uXA+ez/TvLGclGgeVhThGWt+T46P8lCQOpH2YIeEWV/383FG9toTdbN0hunfISTOFpkJ HT/w== 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=xiQoHuCUkZTLxnmDVvLiM8Gg4yVwPwUICoA8Rwv6ilI=; b=eY5r5iYtkLAGat7tgdqmVEQip7L2mwxSbtv8HhOGkmgqkRRE8AW6/xdo+1hoNaWdlN uNWpS9mW96RKWqLdVg7P0408scvuUWrhf2/ANnBDeZ0yEsK5nnyHc24WC+kBUtXRs+fh WMW7JXBH10smhg42XiHj2floAyAPB1TqLLOG8B7LD/K8+mQAms9vY4SKUZ/9D76Mok7p cynPGRQH/LJf5BBY9H+F0S8WxcIywDpq4sX/XXNtq5bIzq5UkaX/eV6jnpKankxKDkjs avogbVldyIdNCyDs6feSoIbcHrAIOvRgxIPK6bs/qOMaoa2kr4OTtWEYT0m53A8IixPV ZkCw== X-Gm-Message-State: ACgBeo2nNNIxwG5GdKHwqiCdOQlO2gCROHWERBAJdKqen5T/UlDJdovf FquZrFz+/e2U25mlASgdtFeh991+4LqNg0UrUocyiqCk6YtP2A== X-Google-Smtp-Source: AA6agR7IVfCXGJVwYGYdj9bKo9uKNlH9h2dhmQh2MVJ204Wp5adR46Ga6v+Z/wzpQ6lD04MI5GR8RtiY3xJi1MFz7p4= X-Received: by 2002:a17:907:1b22:b0:741:8809:b4e6 with SMTP id mp34-20020a1709071b2200b007418809b4e6mr17398395ejc.84.1662125294098; Fri, 02 Sep 2022 06:28:14 -0700 (PDT) MIME-Version: 1.0 References: <20220902091857.GH5920@tarpaulin.shahaf.local2> <20220902125029.GB255755@cventin.lip.ens-lyon.fr> In-Reply-To: <20220902125029.GB255755@cventin.lip.ens-lyon.fr> From: Felipe Contreras Date: Fri, 2 Sep 2022 08:28:01 -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: 50581 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 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 -- Felipe Contreras