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 1897 invoked from network); 24 Aug 2022 19:16:51 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 19:16:51 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661368611; b=rQ8AYKTKpla0qlCc/hNffhvUt8vaoR7DnCJKKN1kZDL6IJpNFPnY2LfxhLdtMipCGbJ+K+wXwX K9LP2rHx1eQdAIZt3MlTLnmHyXi+1iyjsPunedl9nFsL9X1vTN9KyA9ntDqckZcFk/Z30hrj2p X7hTBckJjYvCXOi44/MmpRZuEn4Eb7oMYkWPFOSvIAGof+000eMt5OG1QfbrCZbd05bvnmwv6T t7HFr01vq9gEzZgLZ0n7RZlktj9L+SFTYncZv8EQKEflYosS29FB1nChqHtAVgkZYfIgatMxdB +DVIm5ADRlnwVajPwflxmTkCftui7NcJ189kQ0fZhKQg9w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; 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=1661368611; bh=e5PXix448zGZiVeBz11MUdTYALUAOGizXvfX1B0ydWQ=; 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=EFNVOMOVOVVQO2WxjEGCcs0Hwm49QXWDwPI7YDsIRK8/D7zif3Kr2tNa7Vv/i0WNof2Xl2AkVB 6mLnbUtC1OA9sZFBLHqJ5aCX7ESjbmGp1TwTFeJEP1h9HGKVYoUDQhVHaOL9VfvJTWcYmtYrvu VJ3VEAuI5WqNwvQiJYcOU9dtJmNOD3at+d23bZW9kDkxTm2qkzdu9Osd809sRqRdodKyROIDGd SnkRI79qhI04L0g9WZTeHYXGwcmSYKus1wSlYCpTAn9mZmtngBo4HmJNV21/iuyz28VDay/8xf X3dfKwnzd6R6qgzcosYdRQsAA/gyg9bKpLE7A6gTFQgU/Q==; 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: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=eQdiouDQgj+4bJXmIohzfVvg8qf09//xHsBlSovwryA=; b=PYM/S6vWA7qZm7aV3mlNOerjqC uKDpdED8W89KyXwoHPd5VA+eye+f+Nbbyql0SobXKhplyhFIb/fI+6H5JRw7xB4cZ1bJWbywPC9kJ LtXIMFCWJ6zLpZCuCf21RJMD6UeHSYzk6Had0tJxRXsjw8fpw1/lAIcmOkf5StG2IgWlc5cxoKisI uqQ7k2BmQkgPg+jMOM/TX5y4WGucvLG2wBNVSao0EhwDjrgPgS0g9jRnhzOYcFmT3VSwCflvwqlZt YBgaS3OMAh+Xxqf96Oq5RpD55GkGHHKjmScytLGGakggMBTFvWjg4pnuA2fwEypoS1r/DoubWlDJ2 E78KYDGw==; Received: from authenticated user by zero.zsh.org with local id 1oQvrv-000DCP-0Z; Wed, 24 Aug 2022 19:16:51 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; 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-f53.google.com ([209.85.218.53]:38799) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oQvml-000Ckq-Rr; Wed, 24 Aug 2022 19:11:33 +0000 Received: by mail-ej1-f53.google.com with SMTP id u9so6378419ejy.5 for ; Wed, 24 Aug 2022 12:11:31 -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:in-reply-to:references :mime-version:from:to:cc; bh=eQdiouDQgj+4bJXmIohzfVvg8qf09//xHsBlSovwryA=; b=f7V7fELNDvP7ROuVdsQOjdmqLnVtqHl8TeM3S4+VURLBqpLGByqqpMd2B4F4sz+mjC PWMEgO6PGSaFnufM+nZJMGAHbIE3OGr5oq79fM2ANlYKhtPoHrv9ujsg5nFtR5GPo3VJ RnSc1oHQFPVgN1qpIv2rYixgWm6DA4G0xl4fTz9ubyDgVtWRrROAyr/fPvj0EPxyUF5W 4gR4SfPAypCdxaSR2mgqr8DKswdOYMermpM91M0+pZf9gsFaaIEK0DP9ZoH/9z5kiMef Nzj+/oV/m8m+jQmI0KlBGvc6cjpgvPWM703pJF+jUW9xZm8ByRgyvTeInz4z9VFnwMX4 VIDA== 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:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=eQdiouDQgj+4bJXmIohzfVvg8qf09//xHsBlSovwryA=; b=jHuaxkP3FZHyDxsb9Fzx54Nj6Jgo94Ts8ROQGIGcQaVI29dEfCoK3Tq4XGdDv9NTdg tK8LOlNdRs3jDysYQirr7YKpI+Qny3yaTFAdc+TZv0semGkzG1uhXI3X8/uaplN8XFPG qOO1jg7peJ0ZDWVp8rwAmSvDMlu8Vuzw0rfxZePvoWX+I/MFsXQWL+T50cRrkrtuXdjh Nj7d9fWslohdisLLdmiBwM0za4LRLYvMnIKKzpF4NlLRC7IWdH4Tk247YP1ILxo+gIMq BvUudyg/h65Qb5z+EM2wftRLL5agIHv6bM+gLUeDm1i3s1bFnt9Hr/PP0iyzdBjZG2fg YNKg== X-Gm-Message-State: ACgBeo0mVrPHURbASE9cM2Me8YQhbfLJaDtEAepw8Lo4PGpeDRgP9k3g C+xTKFuAHohys/tjy1wRt2see3/CaW3Bg53NVB0= X-Google-Smtp-Source: AA6agR5SDE2afclqb8X7ROkU2fhw5PeFiVpLIwUpI+qffJiXIXbbkIHgP4ueCWQU3GW6e8Zyq/VsTJeh6BXIKedZKG8= X-Received: by 2002:a17:907:b10:b0:73d:bedd:3121 with SMTP id h16-20020a1709070b1000b0073dbedd3121mr233917ejl.530.1661368291370; Wed, 24 Aug 2022 12:11:31 -0700 (PDT) MIME-Version: 1.0 References: <20220824043145.165779-1-felipe.contreras@gmail.com> <20220824043145.165779-4-felipe.contreras@gmail.com> <7779ec6b-10d5-410a-97da-5ec545cd6e1c@www.fastmail.com> <2f703212-b093-c7ed-7295-14dd39b75c96@gmx.com> In-Reply-To: <2f703212-b093-c7ed-7295-14dd39b75c96@gmx.com> From: Felipe Contreras Date: Wed, 24 Aug 2022 14:11:20 -0500 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Eric Cook Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50507 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 Wed, Aug 24, 2022 at 1:33 PM Eric Cook wrote: > > On 8/24/22 13:32, Felipe Contreras wrote: > > On Wed, Aug 24, 2022 at 4:12 AM Daniel Shahaf wrote: > >> > >> Felipe Contreras wrote on Wed, 24 Aug 2022 04:31 +00:00: > >>> Better to use the same HISTFILE in both. > >> > >> Agreed, but... > >> > >>> +++ b/Etc/FAQ.yo > >>> @@ -1629,7 +1629,7 @@ label(321) > >>> In zsh, you need to set the location where you want the history to be written > >>> with tt($HISTFILE). For example, > >>> verb( > >>> - HISTFILE=~/.zsh_history > >>> + HISTFILE=~/.histfile > >> > >> The default name should include "zsh" somewhere for coexistence with > >> other programs. So, I'd rather keep the FAQ as-is. > > > > I agree having a '.zsh_' prefix is more consistent with other > > programs, but then that's what should be in the newuser-install > > script, no? > > > > I actually think this should be the default, no need for *everyone* to > > specify this. > > Yes *everyone* should specify it. Why? All programs dump their history by default. Node, python, ruby, less, mariadb, and of course bash and ksh. Those are the ones that I can easily find. > Aside from the arbitrary bump in HISTSIZE, if HISTFILE is set by default and > zsh is invoked with -f which is common when debugging or testing you get the > expected defaults. But if the user typically increases SAVEHIST from said > default, because regardless of what you set it to, people will change it to > their preference, you create the same problem that other shells like bash have, > the truncation of HISTFILE to the default SAVEHIST upon the exit of that zsh -f session. > usually without the user noticing for a period of time. So because of this corner case that 99.99% of people are never going to hit we should bother 100% of users. It doesn't seem like an issue worthy of so much consideration. Moreover, it could be solved in other ways, like not setting HISTFILE when NO_RCS is on. Cheers. -- Felipe Contreras