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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 301 invoked from network); 14 Feb 2021 00:35:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Feb 2021 00:35:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613262904; b=lcsssBtk12ja6QIghMztVhYL/2yVuMouOWy6Ctgebo7XhSnSYj0MEvumXmy7rcZbcxH+XIhX8+ hgFcB9lnn9XsoDC32X4z9R+dhSPEbzMZyEJQBKW3yZH0QAb/dNv0O8GdUWX82B456OfF6A0A42 ut+Q8e6TMs4t97hTiHTA/7ymZmln7KMDAOCybFV+HZyMGUdz91eh6vOYDCb6p8W7elrxZDoFLC ZhXJEOPmHsotsifQQf2SnD092+sFdhiOW6j53biw+W0JwfqWt+JoEUO931JTHAG7HNk9ACwepv u2rYb6fGxfw/QGQHyYYPQ3zXUGW6g3y7bmOSUH4J4GmnTQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 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-20200801; t=1613262904; bh=mvGtL/WfBs9N4uJhKQAwMfbDcFzYAeMNy4LxNZ27ODE=; 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=aRcoGcEm7VWsS8Ugeun38G0fuI42m/LO228STdZ2kDpz1RbIXI8a8lk3F/KAcbzoylQHHmGtcc rKUOPhKB+mqOsiTJ03uqUDEPxCifz3rWSvhwd69NUZgvrJnAGEfzFIr421wFbz49aC1cm2l8dh QZG3575qeBrl/Yo/ibU/jrdpEvA9FD2xYCm1aRMULnfQn0jbT3j9nkagEAHUCK5uuPVBFvAWZ/ viIxBnJdFDSVYDWaqrMcOX5AkNND9v84neKgmI6P76jzykEzEjiuw+vhiS7U/GzxDvk6P/e0G6 7K2YcZfCMRaM9o8SuJWgfhj/8+UM8MmV5Pwu4Yk3dKBWkg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; 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=mvGtL/WfBs9N4uJhKQAwMfbDcFzYAeMNy4LxNZ27ODE=; b=UoHrVpA1d9HmuagmlPvRVJJI10 J/7odhmM41D4N0A/HF7eIV4WbAgiJM5/l3EHJCtnNMWwP0l1ZLl3+UY8ugzSMsxKXjF5IAGIb7Vvl d+BU9elYKdKzZcE07tSd1Uekrzyj4Vvzc52pu2KnEc+2WpsOluyNZIFxCHMj++V+FMtSW90/naq9W lkFju3nPKKRL72MA3dWjgsuJV+f2nwVGcR9VVPtOXYFcSkxJeBn1RcyU8PEbwGrc11yDOh81fxjaN 9SYBtoHwmaV5t98D656qKMy4i2baOCVFpe3AgBSRzsZi56SZvgMl1E2kWLEAiA7YjT7McUMZAZ/0f UX18MCtQ==; Received: from authenticated user by zero.zsh.org with local id 1lB5NO-000NQ4-9H; Sun, 14 Feb 2021 00:35:02 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f178.google.com) smtp.remote-ip=209.85.167.178; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f178.google.com ([209.85.167.178]:34608) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lB5N6-000NGe-59; Sun, 14 Feb 2021 00:34:45 +0000 Received: by mail-oi1-f178.google.com with SMTP id i3so4050498oif.1 for ; Sat, 13 Feb 2021 16:34:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mvGtL/WfBs9N4uJhKQAwMfbDcFzYAeMNy4LxNZ27ODE=; b=MZ2KHjfkxzAeq8bz2/7B6+Bojl6yYp4iF7rw5jPHV+Itl1h0uDrnFihK5QIqtO1vyu CCfxir0qITmkFLz+bpth2mScZ/kbnx2sV2LALwrlmpNNQNwWNNgiRgVT8y1cz7cfekUN 5YPp1JMXc/UzjVobQgPp4l4RYh5Z4Vhn5azi/qZZ0X+/OIs6n6npz9kgDdDmgy9Rcv9S SPsfzoYJVu8HWUnhHjzLt9uQRyF19H8c5yqsNotvHT+RK+Dh1FH13WjYg3fElGtgGRzL lkV4rgrwIUpAG2mJIxidkyGj3efWP6it9pAdl7ZmCeYHmxbpqy3w6tITXOvrQUCUDamZ yf2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mvGtL/WfBs9N4uJhKQAwMfbDcFzYAeMNy4LxNZ27ODE=; b=cm8P+mUFg+W2JoRI7Ra5i58ZtCGyTFcKxQRUIfq+XwiFP6OS3GnOPtF4IbRG0c7MCk czUkKfvsNWCgPo85f+/x4WUukVh3gkd8UUB1xtmA8YqG1yNaBVD4hZuCxnWdHZ5H+qfN o8tOEAKCz23H8iZBcNsjnyKmg4f20QcJrp5VjFHGC6WgGIMHnlmVVolfQZmrBN0Xqp+Z N+y74uscTFZfXPxLrN3uWkfGt9KiNSaP5HaLkltClZoMRZ1QgAx2qqWgS6mp8Lkllk0g Qr0EwwRvDBloYgX+LYAUQe1bm5xGwvzmbWx/mdXCLSI4UKbNlrBcrWukDUn+oQjGkMpJ ivnw== X-Gm-Message-State: AOAM532RDnJ+y61smCIUgK9ckc2M8hIr0bFSWZvR+DqaPTPHG6zngBt1 ryghzDduPqeJJ/yeG5M+He5+t+3Ndoa4ISgipJ3CGQ== X-Google-Smtp-Source: ABdhPJw5nYf073BHXRo8Zx9g4xsmJSsg7EFHaPn2WkNw91pdheUCTHqxjdmCmyyMjyx26txz917OXJlt4vluRzjStE8= X-Received: by 2002:aca:808:: with SMTP id 8mr4092971oii.84.1613262882704; Sat, 13 Feb 2021 16:34:42 -0800 (PST) MIME-Version: 1.0 References: <0102017778f35f33-a962e4d3-83e9-4d3b-a0d7-45701bb40b11-000000@eu-west-1.amazonses.com> <8BA25288-0FFB-4FF4-9799-541D6A3C52DA@dana.is> <19996A10-103F-4054-AD57-FCED8E406687@dana.is> <86782FA5-6EBB-4FCD-90AD-D33F352455F1@dana.is> <63124-1613172369.335393@kj4H.lfui.ly3G> <67415-1613180201.366561@nSDd.R0ox.wLYA> In-Reply-To: From: Bart Schaefer Date: Sat, 13 Feb 2021 16:34:31 -0800 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: Marlon Richert Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48043 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: Archived-At: On Sat, Feb 13, 2021 at 2:53 PM Marlon Richert wrote: > > I added a first draft for a new `zsh-newuser-install` script: > https://gitlab.com/marlonrichert/zsh-sensible/-/blob/master/zsh-newuser-install I would suggest that (1) there be a path into (a possibly less verbose version of) the current zsh-newuser-install questionnaire, with the default choice being to simply install the "recommended" zshrc, and (2) the recommended file include the $startline and $endline markers so that someone who wants to dive into the questionnaire later can do so. This also leaves open the possibility that (3) we could offer two "recommended" zshrc files, the one we've been working on here and a minimalist one as described by Roman. > And I added some more refinements to the .zshrc template: > https://gitlab.com/marlonrichert/zsh-sensible/-/commit/16f9ec800d469caa61f70964cffb1fce216741c6?w=1#37e915f6ec0aeb1a403e1d14b71f3f58379a9cb2 Only one remark, really: + HISTFILE= I realize the string "" is meant to be replaced by zsh-newuser-install, but you could still make this look like a working shell construct, e.g., HISTFILE=${HISTFILE:-} Similarly of course for _comp_dumpfile and _cache_dir.