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 30052 invoked from network); 9 Feb 2021 10:57:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 10:57:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612868234; b=UQBZiHb+o+u7VjTYAIgj/V/T3PjM3sqTy2LU1KAk7bMOd3+ega85U4cCgYQoVkwzxRZj2Zmd+7 hBaareVJrZtD0ph8xgGR4Vsl6y1zl0N7Ea8je5aPxC7OGJ0QoDCzkzWXsph1TPRTgpkCXc772C micmnqhcgVw79664fxMrxjYlcoYTwAXhRIoNbnNIlp4GUa+zoBxKoiwzA7gvLJjrKlcLsMGEEG dGccM15+EB2uVKx5ygn39SDcysjDL0xld2RF0wzpaaUasgI2ODj2I7yJndCoHrFup811rWFOf1 GqF9up/Z+5T3aoIdB5rXkUuvGNprtoR1O/fPByT/QcGpEA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612868234; bh=j0NzZSi4GyfrgItqNulssvbM34Sz4ODS71RORzO7Saw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature; b=c14xBw3J2NYUY0mkF2yfeBq68w9PlXeOJAotkMLsADI5Wicq5pMps99Mqy1Rde88U79kTyWZHF lJAgiCDeFtIoEBrY8CmUbi+7DI8oiAJO6uZIxI5ZSzZT6cey9Jo4pllK9hU2sopc4pdVihQ6RV cwaj2BBkJZuK8q1kRmca8XLHago1NKWnJJmG1oUlDShOoX/IaJvRl4VVLG/73qnlhOtdXuz7xk p4n/slhfHYEVoX5jS87k3hid+4nRFaF2CfWs0wJ7RuaGTsOYUsvqaaIijBhgjA86BjJPPgrrUa vGrOpGC39OqSI6TLUmq9pWFIEWkT1WefjgjR/MomctAeDg==; 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:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=j0NzZSi4GyfrgItqNulssvbM34Sz4ODS71RORzO7Saw=; b=WmxZjNhWxbyT84r02abmEeBIAi U3SaUfQudGanDZ/W2qONoyFSoBKOqD5/D9IcumqEVC6MiAmmkJw+rqc4oQv/p7d9sloGJqm/6Dtim nyQa/BS5mlNz1AsijMlYXFSi/4vyC9QixHh4NRbH/1z7od2rDt2Z3bVmuITXE3n/mbq9OkDL4N0yk en9vCg2vRZtrfP/7KTTtckND6wRdClMXHf5Mg6y5JkSgO1V0Zl1P+MMubBFhLqlzWfZdER+BsVYzz IOrOX5kmQmTNNKDdzJeAzbjjyQklUPtZ91eEM4nRzAJgI57dSTXR+Q6pF9tFi+LhXOzSThpqGlhFA Xjd7X2Rw==; Received: from authenticated user by zero.zsh.org with local id 1l9Qhk-00043p-6m; Tue, 09 Feb 2021 10:57:12 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=dana-is.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=dana.is; arc=none Received: from mail-io1-f48.google.com ([209.85.166.48]:40370) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9QhU-0003vf-CB; Tue, 09 Feb 2021 10:56:57 +0000 Received: by mail-io1-f48.google.com with SMTP id n2so18271427iom.7 for ; Tue, 09 Feb 2021 02:56:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=j0NzZSi4GyfrgItqNulssvbM34Sz4ODS71RORzO7Saw=; b=yMgZbx/tTSvgaAt3+QPE0ZRYacjBkjViuJhNr0FrYBTDsbwExNX1R8lZ1EY03Vuwuz 9gY1dMQt5GzmL1ktmjuqOLp3xBpsv3Kvy+2ywE02XAzQD31NN18yrZ11+WWM+2n8/H9g 3Xb4dtFUgmGNBueYYCYo5X6Vz3cmvuRlBMUZrYrmIS5/5/xZpvqPzsZwSIhZKHGEZTw5 SDY5KGZfhrsma8/N1P4v14V+yYWRyEwzazLCv5MvB8Wc7DHgUFxYlccL9PeHwq9a5y1O cbe8BAzHwVvZjErqzElTa/xdhjrCgUOdvcnM0D2vBF7OgaIlBwuVWmfoXLNYBFRTj2rh QySw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=j0NzZSi4GyfrgItqNulssvbM34Sz4ODS71RORzO7Saw=; b=K/xzPwFnnxukF2Kb8kiJks8lzv8tnXrqolKKGuRBsZnanDB0BPZj193lp3Cn9DwCoO PBQgyate6fpz39xmlVv1dOGpsEeF6codKQCGc88mXppRFsVCsESR1Tg59dAghVgh5cVe gE+6cZAD1pveWr2XkmLJyiYnG8oW6o1Bccueb+1Y+RcTv4bl+StBPjGIBVezMlZyEIIM /GMCUNrx4YkxVQSBJAVVT3eleVtfyMSve1E/YR6/7JYnlBR1RY3qi+qSwLOvV2DDubwD wH5FrZYNeIAe8CH2wvnqghN6Sq3Kb33XdY+4ILp8VJWfH5IlL5jUtBJ01BNkriF90KB4 454w== X-Gm-Message-State: AOAM531bT5nNJFA4TIK5uFbFQLttmFU78S/ZYDcC5Xh44XbZQmpidKTe qwWQekIycb/codvuhy6Q7gvUpA== X-Google-Smtp-Source: ABdhPJxKFdIsZT2LLtzvRT4T1wt7M6eZUHLBDc6Gluc8Jx6EN/BSc8sZuYfzwnagTHi91igDKcPfBw== X-Received: by 2002:a6b:ed02:: with SMTP id n2mr18930571iog.80.1612868215300; Tue, 09 Feb 2021 02:56:55 -0800 (PST) Received: from heartswap.lan.dana.is (173-17-84-59.client.mchsi.com. [173.17.84.59]) by smtp.gmail.com with ESMTPSA id n7sm9644136ili.79.2021.02.09.02.56.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Feb 2021 02:56:54 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: Rewrite of zsh-newuser-install From: dana In-Reply-To: Date: Tue, 9 Feb 2021 04:56:53 -0600 Cc: Roman Perepelitsa , Bart Schaefer , Zsh hackers list Content-Transfer-Encoding: 7bit Message-Id: <86782FA5-6EBB-4FCD-90AD-D33F352455F1@dana.is> 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> To: Marlon Richert X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Seq: 47974 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 9 Feb 2021, at 03:44, Marlon Richert wrote: > There are various Zsh plugins and plugin managers that mark private > functions and parameters with various punctuation prefixes. It's > annoying to get these randomly inserted into completions and makes the > completion system that much harder to use. You're talking about like the z-asug and z-sy-h stuff? I guess that's true. The completion system also uses some parameters like _comps that probably aren't useful to complete in most cases. I don't know, maybe i was being too conservative after all. What do others think? 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...? On 9 Feb 2021, at 03:44, Marlon Richert wrote: > Additionally, as someone else pointed out, macOS has a ton of > system users with names that start with underscores. You generally > don't want to see those either. On macOS, that's probably true. Like i said, i do hide them myself. I just 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 == darwin* ]], i guess. On 9 Feb 2021, at 03:44, Marlon Richert wrote: > Well, that function is used for completions, so I felt that it made it > OK to use the _ prefix. However, I will happily remove the lowercase > sorting logic altogether. At first glance the sorting logic does seem a bit elaborate like i said, but idk. If you do want to define any functions for the config, i would just make sure to give them names that aren't likely to conflict with anything else. _lowercase seems really generic. You could at least make it, like... _zshrc_lowercase, or something. On 9 Feb 2021, at 04:04, Marlon Richert wrote: > Bart, Dana: What exactly do you see as the upside of using the prompt > theme system? What does the user gain from taking it into use? I just thought it'd be nice to have an easy way for people who are already invested in prompt themes to switch to whatever this cool new prompt is going to be (without having to hunt down the template file and copy/paste). I assume Roman's concern is that prompt themes are too 'magic' for a default config that's partially meant to show new users how to customise the shell to their liking, which is fair. I'm definitely not married to the idea, we can just do it 'raw' in the zshrc. dana