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, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3158 invoked from network); 9 Feb 2021 11:39:57 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 11:39:57 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612870797; b=RDtu3uyBXwTbQlutj67fmi8leNn/EBNOQJIDmTgLIsQj7SGTqEqxhMODd0CuSr+7YvBtZNMLNM yvdsNgH6TFgQAqVu686YgClXq36JhFJA8rVApHeYC2Eg0fuli/97fa0cTTlNZmA5vN2D9Wwmao 05GDOk3fe5kVaiyEowQxw7mDFkpRQzi2WdgnOg7g9OtbJajFI1+7duS9DEKHD85Vud/ROWC1K5 kHn1MH4TwIIDo0IyqlbD3LRmR0oRPuqKBw3clCuh1MtpifAyKM+tSCHOcfHGnEvaQMn/08Y1Xe 9cpJdNWH6ucb8RIgzm/wdfJwnbymUby2/9WUL3GA3H+4RQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1612870797; bh=70W292o923VO6RsF6TvBG5XO6KJPpWT2d+iP3hfp8aI=; 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=Oe1A6wG/+9WOSEooKOAEW7RNRFg+vAiJ3nWh5+npyvQvFZEf8GhF6y5fxqmTLKoHMC1f9CMTA0 MNQGdVByUcxyeLF5bhqGYoalId5GTR5vEozcjoiEtBV9wAA66bOuRjHpH98WRxJOUlinVZiOdZ fDe4ptATfSBtICi8nd7n2ts3nech0vcZkdTyjcLT0RCYKCKqJNFY6TMgSFfSg66i7Tf6M+LtVZ uH6vzZYAtXii+1HJPRACDfBPFfYEcJuZQkmfX46qNXHbQIObouvyvc0k95648rfnHr7LaApzX3 LdB2KJwYR+AN1TgSoTB8VkzEAZfKHLuOKx1uBCAQf6q2tQ==; 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-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=70W292o923VO6RsF6TvBG5XO6KJPpWT2d+iP3hfp8aI=; b=0vEH406bXI26cnOsKTecBxs4Iw EbDSd68Zu6Kw/Zm1ktoPHDhXXd0QFOLvLbFmmgccRh7GIkx5uGAtehMM6FlEIn8h6Q6rP1zU+067W XmTi9Otw1CAK29PJ8tSMHii4qX1QsO8Cy3lBtFeuHhnMGfN985+Qlme4EKH2ZpXOMtyrrSbAtdVQL uItw+flkawTTTSOPMkjyXBZeTGe3f25WxS4+7h6Bthysasvy/wxeqD3IJ5INxIDQgp0bgPj3jgQNb kkbOfEMMewmUDqSRIYCT4xD8njYPPkoizd2s3Wv9Mc76BEdONOI0n0DK8acgbJ6kdASArekSaVwLl gIgSkAWw==; Received: from authenticated user by zero.zsh.org with local id 1l9RN4-0005Zs-UM; Tue, 09 Feb 2021 11:39:54 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f169.google.com ([209.85.208.169]:37886) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9RMs-0005Rr-3t; Tue, 09 Feb 2021 11:39:42 +0000 Received: by mail-lj1-f169.google.com with SMTP id q14so12151451ljp.4 for ; Tue, 09 Feb 2021 03:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=70W292o923VO6RsF6TvBG5XO6KJPpWT2d+iP3hfp8aI=; b=LnUlpOwWC+7L4H9dfCI649CB1q6Q/SP+YWL6MIEdmOfPfZskbU3zDApcO8o9XzKy8T 7OWRgye1u9kxfQTzly812fCGMHqzUpSfjJjHhM3FA3C8kWsKN0nC29O6lIhrbMwER0r1 7NcJTeGVfkiH0nwNlu+/Ais5R6qx4aDaUj3mcKA2UR90p3rYDB885wuEb2Ysc5XjRGrb 7fDFMlqi0IdEGMdxEGp9XNKwffPeHPjlWqozJrP8j5rpgQHtD/YYH3GZrxiweC/eBRwU 0PHB544A2CWRSMp/lUhj5OE3i8rkXQPfp+IbHSmia3BZfrtvsyNdTuEyIe1/IyZB+xjZ wi1A== 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:content-transfer-encoding; bh=70W292o923VO6RsF6TvBG5XO6KJPpWT2d+iP3hfp8aI=; b=es77k0ABpoEDG+AZSGhP0k9x11HB6BCQ8wPLoJ72nqP77B/V3YyStDnzx1JVZa8PET zVyK4GZ4Y1P1e8MhL+or6RMjUDwFciohE+LdwGl44VYq8t8b7h4m8Cwo9QJ0y1F6qmja 1+YPhMwwbAaqPtq3am0c0X6Rg97t32U5dOVk+utbARpp69gm/oO7btMoobffTBOahw6D 8BAWUPUA5RQEQXthiLG7UhM/o+yBzOBP7LR/qY7SxvhGStcvjSIlYVf+9grYCUBJtoA2 XgKKp06Sc/5MlnRHOViG57B8C76pFlewz1lOHEZENMnoalpH5K6UXI0N9KXFefH8lxtm T4Zw== X-Gm-Message-State: AOAM5327GJihPr8SqKxeaJCZ8d2t2zDeDUCwmTXvRuEIuVfzVcMigPhT xdv7y3Z1M4g8SdkF4NuR/R8yG6v0evBi5ePZgSg= X-Google-Smtp-Source: ABdhPJxQSIJh3P3rkAsm7vf8IO5KyaKrqU/mYbgEDbzASNoLNp4Q8oHEriIPsXK5DkQ5qDwLG+Wemu7yk2FYttIMLXg= X-Received: by 2002:a2e:9692:: with SMTP id q18mr14136439lji.69.1612870781155; Tue, 09 Feb 2021 03:39:41 -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> In-Reply-To: <86782FA5-6EBB-4FCD-90AD-D33F352455F1@dana.is> From: Marlon Richert Date: Tue, 9 Feb 2021 13:39:04 +0200 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: dana Cc: Roman Perepelitsa , Bart Schaefer , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 47976 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 Tue, Feb 9, 2021 at 12:56 PM dana wrote: > What other characters besides _ do you know of that are used as prefixes?= If > that's the only one, we could at least err on the side of limiting it to > that...? I have used . (dot) as a prefix. I have also used and seen : (colon). But if you really want to see someone go wild with prefixes, check out the Zinit code: https://github.com/zdharma/zinit/blob/master/zinit.zsh It uses : (colon), . (dot), @, + and - (dash). And since Zinit is quite popular and thus influential, this has influenced other plugin developers, too. Plus, Zinit's author actively advocates using a whole bunch of different prefixes in this document, which I've seen references to in several plugins: https://zdharma.org/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html#_the_prop= osed_function_name_prefixes The list there includes . (dot), =E2=86=92 (arrow right), +, / (slash) and = @. So, yeah, there's plenty of prefixes out there. > On macOS, that's probably true. Like i said, i do hide them myself. I jus= t > don't know about other systems and use cases. Does anyone else have an > opinion? If it seems risky elsewhere, but OK for macOS, we could gate it > behind [[ $OSTYPE =3D=3D darwin* ]], i guess. How is it risky? If you need to find a username that starts with a certain prefix, then you will still be able to find it by typing said prefix. We have included the _ignored completer, after all. > I just thought it'd be nice to have an easy way for people who are alread= y > invested in prompt themes to switch to whatever this cool new prompt is g= oing > to be (without having to hunt down the template file and copy/paste). Ah, you mean, define the prompt in the system, rather than in this .zshrc file? Yeah, that could make sense. > I assume Roman's concern is that prompt themes are too 'magic' for a defa= ult > config that's partially meant to show new users how to customise the shel= l to > their liking, which is fair. Actually, I am currently working on a prompt system of my own (not published anywhere yet). But instead of making this separate plugin, I could of course consider contributing this back "upstream" in the form of improvements to promptinit & co. Would that be something that you'd be interested in? I can of course first publish the code, so you can actually see what I'm talking about.