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 5828 invoked from network); 2 Sep 2022 03:57:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2022 03:57:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1662091023; b=X7c7tHSY2HTB7wbUeSKEdkMAdkP2gCBPMixx0podXelJ06P1Vq3So5IeStxP0ZU63rc9Nw/QSD V1tBNmBl2y/l/YoEJTWSYWir5JZrVpP8OFPrnFmhTDLzOH5vWbBR3Bl5zxMozJjxT9B0pljkEQ Lt5uHpQAv451LGm5FF2UHrTOnnldwcKSHyeSmLIxtku9f1ALKtnyCxMQWYp34l2+hf2wCzTI6c RuVfcHrXZ7R9frWe53ZQlbtHaw9N6cflWkZGRKsruNka0eKvM4kyj8NUklFAyb1+Rb9AKdd1p0 VxDuWuSjKzbQHoIDpqYDSVIjHuDRGP803u4ahfmbB84dKw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oa1-f51.google.com) smtp.remote-ip=209.85.160.51; 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=1662091023; bh=zoYA9B1B+A/zZZh6LA3Qxa1986UO6KHFptEqZqkyEk4=; 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:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=kBzFXNDp2nljpsPwLWU6sv3fXJGBDwb2POXNPFu7YzCwQ6OldsXWuBRUs6ttrvQx599XBV8cd9 ds4pE8E+BBrtAEaci3Sj4YLDcouvalH8WQ85DWkQ9EXYI+jF5MC+tVDSoG2vVJanpaWcDhPzYx 6Upgmspy/Ku7pqTxH5AgoeSyjBpE17vh/m60F0uzEWukE9pHb0+kwph0va9jyKHalDLCVl98qj ydZnW2CfkKBxF/QidJP+n7SC/ocBtSBA8mAABgIaRFH4e5Tw/ZMOug13BbXQKSrz5CGy2P7K0X WIG552C8+wqelRnI3bZrtxBkB6hj05yZvWkvLiX/F6MFfQ==; 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:Cc:To:Subject:Message-ID :Date:From:References:In-Reply-To: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=WhTJZry9qkE/ZlYF8FCeJSHyJ2GqCpy/kb3Yv+ABcGU=; b=KiH67TvYhoHQcZiy0GgIcz08r0 iuG1uu3ObzAHW0hEIX81V+im1CypeXvdDm4JleGHk5uDbiH5fJFKG4LqmnELAmmfsP5azslfT12dC +pGxqN8CB9y1shYXjsPvwUTYPQYSpq75GaU4SeeUrNj1bFsWe9yQ+fIlZwbU0YmldSiDRHeWaFRjM gJmR6fFnmnQB8L6Vaqo72Pk7Mc+9kCPNqmlvt1ai/+fPrpYJDi3MLZ6XILlT9xUR5Wpaf/FKU2RSK YxU2SXKpxgXVOYC6hogDm7cnEMuCT1cUsSlmSjUS/pOhAxsuL4OPkCdp4lic1ZkMBtU3nrSjL1UX9 TKfyqq2A==; Received: from authenticated user by zero.zsh.org with local id 1oTxnf-0007W4-VW; Fri, 02 Sep 2022 03:56:59 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oa1-f51.google.com) smtp.remote-ip=209.85.160.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oa1-f51.google.com ([209.85.160.51]:44887) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oTxdH-0006gv-Td; Fri, 02 Sep 2022 03:46:16 +0000 Received: by mail-oa1-f51.google.com with SMTP id 586e51a60fabf-11eab59db71so1915729fac.11; Thu, 01 Sep 2022 20:46:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date; bh=WhTJZry9qkE/ZlYF8FCeJSHyJ2GqCpy/kb3Yv+ABcGU=; b=NDfvYzTYaxMIv5y3cWdOYsiZOlpqc2ZT243rUWILHwBY5IEzDHlralvIo45x1WDk1m czD+K0QhAtJv9zIhNG85ZKTd5l10YddL4MEeibdL4OZqwab+wqkMJzrKXuEyG02kB8/J z2PmS+2teVwnF5pxo0Xlt9TkfXgvVt3Tx7jLp3zKj+14ZaYM63ngvijBKQxfNdRhPAAd o6/z97Uza8wzPjqVQq81wFFtr0lAbZS3qrLpTkAoDvfcR9cvgCbzrVABuM+0JSiZ2sKA rFuPiTy0wx7FsKoci6QqBFARjoQMTwp1xxx/xiddQrMSJU5Aergc+JsaWf7XPOWGXiLR 7SGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=WhTJZry9qkE/ZlYF8FCeJSHyJ2GqCpy/kb3Yv+ABcGU=; b=QPu7P3UDQfsnl2WPjCF3l1d7hlnSyUSjjrDVuzHy8YhEVFhd1jL/z0WoBd4sqLX2id k/PSwS9Geb29ufXLNFhlxF7mMyBMmFe4y6XcRBOk5Tlmx1HYmj1E7NVah9J27xc+A26R V8WHcvWwatyZSKA5GnrlDR/bQRSOlXI/6d3vF69SvzEQ3HCn1su2CsBFOkpx461Qd1xr qlz0lMe28wJQAyfCxh7J+UD6CQN381TrGrIPnrhQUM5uuPy4/RxxNmdj7mSZhDJnoHgD NSl5ynXuRGztG0KlB6pu7iwgioBExDLORGt+Ua1SmeqpF1KRtHPSyBJ7htrepb6ArLB6 Q5Gg== X-Gm-Message-State: ACgBeo2mrcfbXP97r1mvO2oS4QkixBljvjI8fOLx3dmFYRajNlL5ankM 1nUz+kozWu9xj40Ss14TZvmt/e7I/MSmXWsL3to= X-Google-Smtp-Source: AA6agR7Sq25KRms0+WbCbqS6YASi5SATX3fVpGNt/b+cEABwDxmJAOjDDPRNAk1uzggnZMoxE/sxtSu5fN78kA8ifVM= X-Received: by 2002:a05:6870:a90d:b0:11f:5efd:cd1d with SMTP id eq13-20020a056870a90d00b0011f5efdcd1dmr1195055oab.293.1662090374033; Thu, 01 Sep 2022 20:46:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:7717:0:0:0:0:0 with HTTP; Thu, 1 Sep 2022 20:46:12 -0700 (PDT) In-Reply-To: References: <20220824043145.165779-1-felipe.contreras@gmail.com> <20220824043145.165779-4-felipe.contreras@gmail.com> <7779ec6b-10d5-410a-97da-5ec545cd6e1c@www.fastmail.com> <764a967b-86df-42bf-9242-22e9aeedfac6@www.fastmail.com> From: Mikael Magnusson Date: Fri, 2 Sep 2022 05:46:12 +0200 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Felipe Contreras Cc: Roman Perepelitsa , =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= , Bart Schaefer , zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50566 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 9/2/22, Felipe Contreras wrote: > On Wed, Aug 31, 2022 at 5:28 PM Roman Perepelitsa > wrote: >> On Wed, Aug 31, 2022 at 11:57 PM Mikael Magnusson >> wrote: >> > On 8/30/22, Felipe Contreras wrote: > >> > > You may think HISTFILE, SAVEHIST and HISTSIZE are self-explanatory, >> > > but the fact is most people need to read the documentation, and even >> > > then they end up confused. A few days ago I replied to a person on >> > > reddit who had a configuration with HISTSIZE bigger than SAVEHIST. >> > >> > That is the correct configuration. >> >> This is my understanding as well. To be more specific, SAVEHIST >> greater than HISTSIZE is equivalent to its being equal to HISTSIZE. > > Only if you are not using APPEND_HISTORY. Still wrong. SAVEHIST greater than HISTSIZE is always equivalent to its being equal to HISTSIZE as we have said repeatedly. If you continue to argue otherwise it is surely trolling. If it is a mistake, please read mails more carefully before making such firm assertions or phrase them as a question if you are unsure. > Isn't this proof that zsh developers are projecting too much of their > *personal* workflow into the users? Not everyone uses zsh the way you > do. > > If even veteran experts can't get right SAVEHIST and HISTSIZE, what > hope does a brand new newcomer have? The fact that you misunderstood something is not really proof of anything, given how often you've made incorrect statements in the past few days. I also don't think this could be clearer: You should be sure to set the value of HISTSIZE to a larger number than SAVEHIST in order to give you some room for the duplicated events, otherwise this option will behave just like HIST_IGNORE_ALL_DUPS once the history fills up with unique events. Though admittedly the SAVEHIST entry could have references to the APPEND_HISTORY and HIST_EXPIRE_DUPS_FIRST options (the HISTSIZE entry already references the latter): If you use the HIST_EXPIRE_DUPS_FIRST option, setting this value larger than the SAVEHIST size will give you the difference as a cushion for saving duplicated history events. > 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). -- Mikael Magnusson