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 19461 invoked from network); 24 Aug 2022 21:40:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Aug 2022 21:40:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661377207; b=n5aBxUVvr5oFlmhkQSTiEMLQVvFnO2vE+mpp2aTOTRrZ3mutbs1qeyyKf4eRVH7YrhAoF32h4e mh/vJG99XB6cQt246h7GK/WJe5KXk5LaYsUhQOI5ioDo/ChlfbbJrRoNRQ+sB8mdqoHFsX7RR7 n6LGIeDSVY840IcvJ8WAblervVPKZlbtIoiG3h9O7fZlS+gZwsbEzJQJ4zdaHrZ/FyUqgDf2kG H6bTSN87LDF2wTiOgzHS6G5vdcSVqDrzDGgb3uxUa8CWcPpCKG6jf1pKdDkzOmqGjcXD28CRXb gA1CnF8hEgq+z61Z91zr8mB+v2ODe6J4a6zhiWKbtFtz0A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.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=1661377207; bh=nod2cH6D4ZAosZ64mReaUiF9EBa6P72Q6gvNIrH3Tag=; 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=OJg2NrARn4RAcrKI+CHT12+0HzXLZlMuaE7lhf4OZVYzx98L7GVLCOodeiN5F+1rGJV9sKPC8L dx8FNcT3tT3AuNa9wMWJFKIB2K76oL8eI/QHYTHWsE/8aULgkmVYEmjb8ogByOo8qDcdP4SCij jrscEhdptMt/viTk1cbdT62/H2PwNDSXcrC5f7YlVpK+LkzKmZG444xeisMJADKMJhBSU+AiY9 XQLX7WpbnMO02LeA3pLUxE5YWDPHGBbwCf29DByumooakBrsSUP9VjK1SqFiSlKUL0+W+1+tXr b8W/rBjoeqsIhBrL2J4TQxJnZrX5YpfCTQUOA+qRsFRAXg==; 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=A5as4uXEMvBk4tdVs+hKX6bXkP/gDToiE3WjSzISBMs=; b=GKY+Uc8rBOq2cOVFLQSHZP8feE 9JFXbgj3UpS1azZcgSDr22NeO+sOUBPgavTer1Fh+8QLmy2CyQoLsm6bJZYp3lux+swA32STpU905 MYHyr90+c2CypN+6Mp8HP/3bmexD2xOJ/VRktkvpsNUqDDKkdPHLUuRtP5f69Pmy5VOsY3QP58m8Y z7wDmTLvngWjNa6B1jvZprpZ/W6V2+7dCh/rI+N2pJ+nz+bbHkk/qhhjYM9OwdeaQ+HCao0+pLUwa EYc++34m4Tyh8NsJaA68yPfmsTOH95bGdw93YtY58X5CamYe/lX2d7kbUxZDeRnESi4GxZO/IObRO 24J5QHlQ==; Received: from authenticated user by zero.zsh.org with local id 1oQy6Y-000MSM-I4; Wed, 24 Aug 2022 21:40:06 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.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-ot1-f53.google.com ([209.85.210.53]:45876) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oQy6G-000M5x-Sw; Wed, 24 Aug 2022 21:39:49 +0000 Received: by mail-ot1-f53.google.com with SMTP id l5-20020a05683004a500b0063707ff8244so12647037otd.12 for ; Wed, 24 Aug 2022 14:39:48 -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; bh=A5as4uXEMvBk4tdVs+hKX6bXkP/gDToiE3WjSzISBMs=; b=qahrCk63cIdrBYox1byN+3IiWYxeoRj4Bg+J0S48O+cGbi8MQBemrv31yyHxJsz6pM uTuQ4pq0LenEtIVtiQ5E2W8OPYJLbYZu8FBw9P/eQeWWfKVKO0WvwKLc76Sqz5LHQ5FY oDCurKOIHZaeUxHY2wxXHWA5MTLVoV0Zyjvp2ysjiVUb07pe8M6tDPtYxaa0+cISAZDu b3XvixEAYod9I/QbLXcTBxmCbX2jFCYWlP6+JzDfWKOKuWEDleIXmnL4A4OgtvzcoJK8 +S1BFwta2bsqUfCbCVg7AbKzrm7XVk4s/Et3amCh1bsK/cN8e4ZRggEdxn2v18xeoDPd tB7A== 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; bh=A5as4uXEMvBk4tdVs+hKX6bXkP/gDToiE3WjSzISBMs=; b=qMxHfNz4i8a82EQAuFcVf7ZgqQZ8vRZj5Nd5ggQUIcUWUoundiHIw6vGDjwM8u4IzS GiTjybTTzxw+rCxV1iDqcWc7/ZMANfVfeoBbvHvam2/xpxZudRzqNbaie5MtF5Z8XAZd 6X/mvBjVpynwBYV5Xj/dP7pCAjZCrNUjrzsscCpWW0c1LFN13mlkk0Guu5I5GWyJIsJ+ ZGs4Mabs0SXbyooHoiqSCS1CYC95kleS0wxXZBVomajC+LjO670d7pG20hZrQhVqP+vN U+dtwViS+N6n7nRY1pxbgBBTb8sGZqoBYXKgTCjO3kQvj1zGjHw7ToBeqdeVphB7ZwSD jt+w== X-Gm-Message-State: ACgBeo3vgs3//07W+0EfDvQuc58vDJFfST2wUtHRzPTwfmrhMpR0Hn5o 2rlj4thuV4Jxr5w3OQ+IY0xTJRkAcnOWjD+We5EkWike X-Google-Smtp-Source: AA6agR7dFF9Nh/gKvepgowL/sU8a2P9aLEZYKnwr2bA38s1cdLrbO5cm7rvNgC0r/Ja6aGSeIMUaUdcfeHe0vRSywZU= X-Received: by 2002:a05:6830:2049:b0:639:2a8a:809b with SMTP id f9-20020a056830204900b006392a8a809bmr271361otp.167.1661377187744; Wed, 24 Aug 2022 14:39:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ac9:1b01:0:0:0:0:0 with HTTP; Wed, 24 Aug 2022 14:39:47 -0700 (PDT) In-Reply-To: <20220824043145.165779-1-felipe.contreras@gmail.com> References: <20220824043145.165779-1-felipe.contreras@gmail.com> From: Mikael Magnusson Date: Wed, 24 Aug 2022 23:39:47 +0200 Message-ID: Subject: Re: [RFC PATCH 0/3] Improve defaults To: Felipe Contreras Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50517 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: n 8/24/22, Felipe Contreras wrote: > It doesn't make much sense to specify so many options when simple > defaults can do it. > > So instead of this: > > HISTFILE ~/.histfile > HISTSIZE 1000 > SAVEHIST 1000 > > We can just do: > > HISTFILE ~/.histfile > > I personally don't see the need to specify a file when virtually every > software dumps their history by default, but it's a start. I have a keybind that toggles history on/off, so if i know i'm going to be running eg 'make' and './someprogram' alternatingly a bunch of times, i don't pollute my history with it. It used to be implemented by unsetting HISTFILE (it uses the zshaddhistory() hook now, but others may still do it the other way), so it would be quite an incompatible change. > From what I can see most people simply set SAVEHIST to HISTSIZE, so it > makes sense to have a value to make them equal by default. I used -1. In my experience having magical defaults usually leads to more confusion, not less. (Not a strong argument against these particular patches perhaps.) > I've tried for a while have the most minimal .zshrc file that is useful, > and never is that small. This should help. As you're in the process of finding out, part of the reason the minimal useful .zshrc is not that small is that people have very varying preferences as to what should be in there. -- Mikael Magnusson