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 27207 invoked from network); 27 Aug 2022 02:24:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Aug 2022 02:24:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661567087; b=qvib4qU00pX2/tieSNoHbuXWAMCnn2SFq0qnaHRQaKI6vap0k1sRKKYO9nQ/DNshqV5YzVqwrQ PdLiq88DabEPxqvvx3CuBMIuqMhtLKNUQR5i0mGdD2r7gZAeKRQvD3iTWabM3CMrBdbnPCB8Re aYgZbdy5gnDRJh188yRUExJO0qeq0KFb3vkVkcX1kjqtQRGiAmjMF6azrotvPROSPm8RbTHKpg CDnEgTu7OvCFl6u6KnbjrknEuNU9OhKr6WSQzn0XFjNAZjvUdBLgyh5cFyY2AoTq9t7YGsShtM 4pv/6J30K3p3T0bqCtzAIstMrzoPT4Y4fko7NCOZhk+rGw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f45.google.com) smtp.remote-ip=209.85.218.45; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1661567087; bh=6s96ErR4n5GfSzFFypvbKkM8zyzfXGiVepreXm0tJe0=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=Az3PzvUG5zqgjZYnwjb2Gx57VE3jbaF43g/CdyoXRaoMN3vnVhBSYasrNWrGzUlVbbXLl+TtxU TUv4Y6zvVp82pUi6Pmub/54yJqpDJpypbgA/VoWx86uAVqxsRip5HHZwQhJ48kXuHFAM0cm0tx s8mMu4sfuIbGTrsXT424f1w33GagVD8VRhdggcLF0HX3wwCoPtwuQeqeRCijjsfp8JUlMT0cFk WNji97pPmcbKE55S4BNn+kx2dHW2mGcH9e6gFqelSEAanDs1xeDuZGA9wDMFaImHJedweOG+3H rKhSMfaA6AJa1XrBLY+TJnkay5Sgf1/4v7lhof0Pkx2wMw==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=mNgE7uoJpCbc84jRI+9sJt8EK8T8KttJpNiYCugU+Zk=; b=bBmLOD7e4zqpr8HnExOVX3Gmkn o5YF292CdfClY1OMh5zq7pbecJOI+ry3IIC8SLk/KKD74NQeVNxkRd9zMsLKHPmnu9xqAzawwVB9r S/FPI6Up2ZBJJ9s8FoSlQwasMwpgFxLjK627gPn7ycz77r8ZGxl73EY6XN88jIHkLbPnHs1k0m76D yFNh1sk7owTteO9JPfTMMSjVqxWknCOo8/DKiDayiZGOTlNzFUWvITtrfhUJr8ryORGmyBzIeT1za ZKZ0uFsvSP6CWHfbbBbTKxA6pg7qUGne0T7JEbYyC2o8djU6dpFFssJpE/0rXbSCpMUNBbm5wAX3F NZA+rcpA==; Received: from authenticated user by zero.zsh.org with local id 1oRlV8-0005cZ-Of; Sat, 27 Aug 2022 02:24:46 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f45.google.com) smtp.remote-ip=209.85.218.45; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f45.google.com ([209.85.218.45]:44669) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oRlUp-0005J4-71; Sat, 27 Aug 2022 02:24:28 +0000 Received: by mail-ej1-f45.google.com with SMTP id kk26so6131843ejc.11 for ; Fri, 26 Aug 2022 19:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=mNgE7uoJpCbc84jRI+9sJt8EK8T8KttJpNiYCugU+Zk=; b=CI/VRIcy5mEr35qopbmgZit8vgJ7asbGhj9AHcNFA2UUf/JocoSzTWp4lbjHdkKPk+ nC6SOGj4dIpC05/3QYwPA07u52Q++TkPNc+doKUkBoDmdpCOCOlVTOnoMEGZ3w0ZBXDd O38+faKnh2I8xTj78Jz5XQ4if6Bhd6QgUbFu+xRr8yFBhxuCUPYQmt4b1xOtXm15Sztj yCaxmhYdtKMS7HP4zgyCP1u0pQWd0R6pqHe7X1yichDHmTVXphmKm6OAZTYEUc1EHJ7S baBleCyJKG+ENOsswQgs+NCMOsxFuV2gibLRkCGEWn99c6nNXJA2IDb2mZ4Dw0h0ulgM ayvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=mNgE7uoJpCbc84jRI+9sJt8EK8T8KttJpNiYCugU+Zk=; b=mu3Wl2bkGRheP/43HIhiXW+LijS4w9tj3LFjtSfnX4o7TwfSpUoyPCKsHhsX5idGrl SS2FYdBzPA8Aez6yIeHAgAa5vAsl/tNiUNAJjcd/BgQsxo0NUFdumHWwuT8wiz6gS10E F9Pnp5lUOKWDf0i4PfmEMjuDuzGbrDTLdtGWnP4mE6kiucxLdQKQCgQtSWETXZGlCF4t zPEX78Bia1xGfSP7al0v9+X24Gai9abaf2q1PPVIV4C2JDW9ZITEk0uOy5IdEWGs9zHg feOj8sWx29G9HLMMdRWDro/S+8mSX26RvpeukO5lDuWPumgAJbRCyGC7wOb+XwS6fgs3 vehA== X-Gm-Message-State: ACgBeo1yydvgDzyWH+YPlV1CP5Ite7+8kOWo3GwDW5PBje72203dTAQF CYE7NQdAZWsIIZNlfqrvVd03IgRbpWZAS45H5Uc6Yvlffoc= X-Google-Smtp-Source: AA6agR7CZY6NlE13OUHcCyxdQe+bOF9njMAuAc0uWQVJOwWnEWBnlOsBVYExhnpewBupDdRTxzzinQQawGNKLIG9tq4= X-Received: by 2002:a17:907:284a:b0:730:a1f1:38b5 with SMTP id el10-20020a170907284a00b00730a1f138b5mr6674608ejc.732.1661567066600; Fri, 26 Aug 2022 19:24:26 -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> <764a967b-86df-42bf-9242-22e9aeedfac6@www.fastmail.com> In-Reply-To: <764a967b-86df-42bf-9242-22e9aeedfac6@www.fastmail.com> From: Bart Schaefer Date: Fri, 26 Aug 2022 19:24:14 -0700 Message-ID: Subject: Re: [RFC PATCH 3/3] FAQ: sync newuser-install To: Daniel Shahaf Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50534 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 Thu, Aug 25, 2022 at 10:27 PM Daniel Shahaf wro= te: > > Bart Schaefer wrote on Thu, 25 Aug 2022 23:08 +00:00: > > > > Unless there's an important behavior that it's simply not possible to > > accomplish with the existing configuration controls, > > Does "enable saving of history without specifying the history file's name= " qualify? Has anyone other than Felipe asserted that this behavior is important? IMO it qualifies on the second clause but not on the first. > What I had in mind was a new option, HIST_RECORD, and have it implicitly > setopt'd by assignment to $HISTFILE and implicitly unsetopt'd by =C2=ABun= set > HISTFILE=C2=AB=C2=BB; I am not sanguine about the idea of linking an option and a parameter together that way. > If that's nevertheless undersirable, then we could go the deprecation > route: leave $HISTFILE as is; add an entirely new way to specify the > history file's name and whether writing to it is enabled (perhaps a > couple of zstyles); Also not excited about deprecating the current settings nor about tying built-in shell behavior to zstyle. Currently zstyles only affect operations that are provided via scripts or shell functions. > Any other alternatives? I haven't worked through all the details yet, but perhaps a zmodload module? The boot routine could assign to the three variables and then (I think) even unload the module again. Felipe's zshrc would do "zmodload zsh/default_history" (or whatever). The module could be compiled for all but the most ancient of older versions of zsh if a packager wanted to do so.