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,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8421 invoked from network); 2 Sep 2022 12:50:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 12:50:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662123043; b=kkTiG+VgvWKVtw/qaqcGPz6bzaTAHKvoDm2S2N37FCCsvtrrIlBO+ItiZEwvHVVUgsa6w4ut6Q qGOL+7qxaGHAKbiTCICMh4TfCI5pQUWOczhPGSAqHwm2rWN1CgdBlTfTCjARsdZ3mSS91l5Hjj EMkbfq4aXJJ6qIeGA0A+sJDTy41IDejmYIo0B0dQq0EOhPyTlJFAyhCEpxG1KOCeFFtyPjnASe X2hQD0hmER0eJ45VePX/xrolj9cL4D8XKSUsnQAr6f8csHmKae+/boAXQJO5LwiXC2dlJk/dCq dlJdXvfwn2lRovLhNqHB0/HiG7f+D/flJ4QqHmRCeAubEA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1662123043; bh=/KBqcA+tmDrwiQjcVtyBy7B6jzsX87gjhAvI1mqCgn0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature; b=Um8F3WTDQWmveV4cde81DSKr/iKhexYfjScdIERXD7BlSQiV3VfFE2BE0JGYCM1qYgSBM2G1ex ZBtCoe680N9zVj9+McMZLb2TAK2ZumEmqmNO0uoTH6cf8AkaESqyeccEWZnsAndHfe+Ggq2CVf yX5PPtib8aVj5VMXc3vuz1su1BeqvrNUQZl9jA2Ykl8xWeJU4w6QBsaB+GK88yEYMdJv6/wvk5 9jM/L5+QyqrF5r+pX56zg9lLMS9hQrzV7SUPQRut+v2B60Qgob6aQrNPndNfNRnV7A5C6uF2VD j6TgkrX70PYSJ4dIwW4DhYWN39LKFNjr9Ep9tqC5DmqHMg==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zrjtYqwtJBfO3n4uvPAPCuq5XK8WBcDXvrEW/hnR19w=; b=jNFi9IfoTpSM19VjO+c42CzF2T VfpmK1WZTKrt1Zsa8IyyHghIg6Ez60kye9ezkjny+AColQMH/OdAH397VP0/v+7OfFF6NupDXWOTY hOkRha7s2Ujl9dR/wUl1MGk7fz2VyuZF5x63HcGwIyWTIbNtaXEX1O/IHhMk6YCm87NrplLb4R3Gq xZ9juyNT5UQaT3FINcDVvqr4Eq54bqJBHSUzjU11QdupRRY6XbM8vmqLcO+jG8vS4isGIyyOAeU62 pHhJcXqgL+9TiOlvnI6S2yHv4Wgfn4trZugfyq4dEk9OZsEq/gLfzo6JtYzVwxrFW1UZvW39O3g9y FPMKRVTg==; Received: from authenticated user by zero.zsh.org with local id 1oU68A-0009k0-W6; Fri, 02 Sep 2022 12:50:43 +0000 Authentication-Results: zsh.org; iprev=pass (cventin.lip.ens-lyon.fr) smtp.remote-ip=140.77.13.17; dmarc=none header.from=vinc17.net; arc=none Received: from cventin.lip.ens-lyon.fr ([140.77.13.17]:35716) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1oU67x-0009P8-8F; Fri, 02 Sep 2022 12:50:30 +0000 Received: from vlefevre by cventin.lip.ens-lyon.fr with local (Exim 4.96) (envelope-from ) id 1oU67x-0014nX-07; Fri, 02 Sep 2022 14:50:29 +0200 Date: Fri, 2 Sep 2022 14:50:29 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install Message-ID: <20220902125029.GB255755@cventin.lip.ens-lyon.fr> Mail-Followup-To: zsh-workers@zsh.org References: <20220902091857.GH5920@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220902091857.GH5920@tarpaulin.shahaf.local2> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/2.2.7+30 (1fccbbf8) vl-149028 (2022-08-07) X-Seq: 50577 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 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. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)