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 32629 invoked from network); 13 Feb 2021 01:28:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Feb 2021 01:28:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613179727; b=DJoT+ZY+1vGw+sV1e+ueedV2s/JaMz+qxg7NBQJV4PQv08IhgKLFxyA7bETjGGsz2EpicLwNu4 BaXE94fFLEQrM2YqnlYEzh318EOGZzcy/nzcPbunniUASROav7ePC20BmCF2bBAuzZwYPREq8h vMuTXI7xrTZjNf9R0sX4pCoUofh7hXx8Z9xBSau1ofVW6Kkxs19BLR9gjgU0+gMvDE/oK5buha YiG8oAKkg64yxYHVNC5rh/iCuTft2Bb3xkI+/mUAgLe7jTp5m0N14LueI0DY22uhAZ3OAZMTgl Ofg8JWp433mbxDrcenrnAtDWIFUqj19YvCnv8za3xTEAKA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f181.google.com) smtp.remote-ip=209.85.167.181; 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=1613179727; bh=6X0rLM1y97nVOhlH15MltmlcObZCDauC/OaaYEVw3JY=; 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=CcGN5hJ3jkVWDDOEYQkwJXMY/9l0f5662luqvqW4TPBFISgQi2LnMQjRjqwIUFzl7NSYh4YuLA hB2RBtqaju4oE9WDblKAabGQ7fmb414STIgRE+j4dEqlhRg8j1ZgfTogpvUNkWLDlpb2FgBRae 5lCQUbep5nztTk32USi2SkxXDRWbYDFKYRAyZE2UVh1wbcnOpHNNJWGDjsGfsCFHeQ1YcCS0Tj s2SJt0q2/x3Ld8c+Rp7Mfcigb6FttUkjYQyNXKz3IJTAlofcPTWiobzBAbDWIXOAjIvU/Int/N j9h7Qu5VaI0/d9i6YwrEyb1ea6O5r3rEpBwxwQAV2pidKw==; 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=1QWY7Ua9DDHHwnx/sm+KkRcffip+lb6Pg8eKaxqjBcI=; b=eN1Ng8g1NB1X6YGaVxuXu6RDBI cFqKxbK6X4G2JciV6oAF1enXeFEJrw13x5J+4NYPeI9SCWcd6dsg8v8zGxssKb8GUHjKylNNcPzQ2 /zXHl3MpOhJfrUVQtLDsmu1j5aFEKNLJTMDofwkKTxK+t5PuSCVr5QO5nz0bh+JIx4+uGsI20aFGT EYe9bvk9a90v74RLHLNtr6Pt/KnCrpnOhiruxkoYQKuuCi6TXN4e9M2TQ0dRkjW+ttPCn0ZcS2Cf0 WCWwxHG97aOiTwYswqPsRxOthI22Xj40aXLtU12r+jwyZFfT2bmTiSsP7bKnLqBmz2Qd8GU+9+lGt e2kyllOQ==; Received: from authenticated user by zero.zsh.org with local id 1lAjjr-000A4s-1V; Sat, 13 Feb 2021 01:28:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f181.google.com) smtp.remote-ip=209.85.167.181; 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-f181.google.com ([209.85.167.181]:36829) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lAjjZ-0009v3-Od; Sat, 13 Feb 2021 01:28:30 +0000 Received: by mail-oi1-f181.google.com with SMTP id k204so1722737oih.3 for ; Fri, 12 Feb 2021 17:28:29 -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=1QWY7Ua9DDHHwnx/sm+KkRcffip+lb6Pg8eKaxqjBcI=; b=rOHW0Eah34fm2GEiVI+YlDt3rOgFhcr028uGkTiUrsJDO46DykOKxBbjpfiuACicud CbAW/ZAsmMVuHlTmNNxiOTWl0l67/8j2z7X2IrX7aozvpW2yyYkD5STGtHzqII4OizJ9 YqjCzBxnT0nyhPKuXoDYzzFqkBQ5GWPefSP83RLzjXmc1+bhC7EqH0P5mWFVGSb5NiI5 EOE16i0qlZKxmN5f/VqxRhjttwTyJFsp0PPZYxTrzdyn2Vk3BDHjKJFM0a240lRjsfmr PDlS4Nej6SOsM9d7JCybV/SFOpArXykUxgbl1gsbTPYh4PlhCOnO1B0hPahv5Q6I6UR0 jNrA== 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=1QWY7Ua9DDHHwnx/sm+KkRcffip+lb6Pg8eKaxqjBcI=; b=jR5ASmbOwk2Evt/tidyOpE4nADsLRO+/pmUZAXsBbMzLET3dizsU88xZvIzDzvDURx GQL5OhBoJmQF7p4Kb1VJZHJzXxjw0ftuMHuGBJtoAJkZqj6ZiBYgWfGLssoPzfVypMe/ PM6tUYHRbcWlGMGTZNwu/pCktiAN2I7jJUOpsabWxbQmkacJcNdtB/fduwmcCbuK+Vxy RjFh8pwjCB88Jx9yc+UPD8LwLDqAUkIqbZeMcSCbPDYszuBcrUU9auuYm7TnGD/U7VLK t/qpo6hPkXGDI07d/BQ3i2NkODe5rJZTs/0OF9zpK3Aj8yYD2PvckcDe46jvPWeDpMQa KTRg== X-Gm-Message-State: AOAM532tqI7KhGomqqe/REMMiwLxFnz1VBhrhNjgfKT1CnXKA0txVHsx D5BnLIUodv9wQ4ZEtconhk0A7651LzsPjz0V9j/2m+GPDuBoGQ== X-Google-Smtp-Source: ABdhPJyzwLj30Y7ZK3s6/R3N0JzJgX/ZKa7jmkXOus3Iy4zIW3YjaUt4c2Podjm4JWH8hzXTuBvRUvmnXMvRYgXTKhM= X-Received: by 2002:aca:3b8b:: with SMTP id i133mr1628430oia.132.1613179708352; Fri, 12 Feb 2021 17:28:28 -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> In-Reply-To: <63124-1613172369.335393@kj4H.lfui.ly3G> From: Bart Schaefer Date: Fri, 12 Feb 2021 17:28:16 -0800 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: Zsh hackers list Cc: Marlon Richert Content-Type: text/plain; charset="UTF-8" X-Seq: 48031 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 Fri, Feb 12, 2021 at 3:26 PM Oliver Kiddle wrote: > > > # Use `exec zsh` to apply changes after editing this file. > > Not sure I'd recommend that because if you mistype "zsh", your shell+terminal > disappears. And if they've broken .zshrc, that can leave them unable to log > back in. zsh -l && exit perhaps? Also, check for minimal correctness with zsh -nf .zshrc > It can be quite helpful to leave PS2 empty and put <%^ in the [transient] right > - allows for copy and paste without intervening prompts. I believe I mentioned this also. Actually, what I'd really like is a variant of %_ that outputs N spaces for every level of complex command depth; I'd use that in PS2 and %^ in transient RPS2, and presto you get neatly indented code to copy-paste. > > ZLE_REMOVE_SUFFIX_CHARS=$' \t\n;' # Characters that remove completion suffixes. > > ZLE_SPACE_SUFFIX_CHARS=$'&|' # Characters that instead replace them with a space. > > The first of these assignments is actually redundant because the latter takes > precedence. Is it really redundant? Both settings will be applied, it's just that SPACE_SUFFIX is tested first? > > typeset -gU PATH path FPATH fpath CDPATH cdpath MANPATH manpath > > These are tied, no need to list both forms. The -g adds nothing either > outside of a function. The -U does nothing for the scalars, either.