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 32421 invoked from network); 9 Feb 2021 11:15:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 9 Feb 2021 11:15:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612869325; b=kCqmrYS2tfTFstaJPmEVWDgm1jXf8Lvl50zPC+pY8NvmgHz6ylEiXSIffVZZ3+IuYVrDVngpq1 Upf4zmgL6KsszUI8806h/ef78TJ0brW8oG+CQMt0ejkC0+tk4xaCgR8ySvJrlCihsM+P7gCiuW pgzZORWHldWMkqc3Oz/JQ/BMJnXpaExffc9J4I0Tyz5tCWkuKN3Q/yBEvbHDyZmRlnp65K4XyO WAh5nS5vVQxpd6CPbr7XAaN6+HjzkYfCkkNkXznBIRpZBea8nO7tsEDb8IISf6l5wtN2IS/aIs umj9DLSnqhC6VGHR7FQN7GT4/x5IZFkz7oLb3juRRdn30A==; 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=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=1612869325; bh=Z6ZX5m3b3kUSBhl/AXlN6BJa+j3N3CysCtuMPt5Ezis=; 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=Q9+BO6TF1dbOkFqwq5Eh/GKYlest43+2J/KVu4908nmVV7CSDuFCAquRjZMbDOvhh0DwUPJZ8t JwqGtB2l3CSnYaTgR5q0AQBmbZFMeo6lDtrYkTxb8ZMN8c5GxFUItriy2phu4invPSZy993OtK aIb06GwO9sbY7GX9CCYfODvPtVtg/tM8boiTjoxemZakssui6ViGVkuQFd0PDIdewQHlasqCnM LNBy6jy4pfSAG2ug39r2sJoLQYdFDUIiVFyZw24sIWvYe8ZET2P1F53YwABMIH851EgAMSWHiJ +c9Kan+HX0mG6ChwcDxF5H8WT2Esop1F53kswiM8CVKUBA==; 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=xmW+sjyLbZVaaYI0nGScJZGPQ23Ijo39AW0936zXbKo=; b=MVEyiHhXtEpo37I3LDAlgEVqWg mRHRdAkMWJ6KPJMiSmZ6+YR42OStxSEbLrx1QgGMvNs4IU5uTbemudYnB/v+4iulsEKENj8X7uzP1 JZe+4gk/prnhMdDkRk0SzJ6t7/n1xbQdkX8p2P5eAF9KszF45hXGiPyougw+ZYBEwZF0gsfaUtFdK GwLseR/R/vnJFmFVbpnMRXb62Dq1innI3jVx+84XV5OOmL9umxkSElqZMknFII2tu4biJYfkh+9V+ rMenL6/3QCSBrHr7QkWiE28MkdeGGwqdDs/VTAhyCAUZDNkO2jbfx3CZfOJK7vAky/Sul2GgXpjCs fHjKk/7Q==; Received: from authenticated user by zero.zsh.org with local id 1l9QzM-0004lW-LB; Tue, 09 Feb 2021 11:15:24 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f48.google.com ([209.85.166.48]:40600) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9Qz8-0004dD-95; Tue, 09 Feb 2021 11:15:10 +0000 Received: by mail-io1-f48.google.com with SMTP id n2so18322001iom.7 for ; Tue, 09 Feb 2021 03:15:10 -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; bh=xmW+sjyLbZVaaYI0nGScJZGPQ23Ijo39AW0936zXbKo=; b=spm28iyHJ9/PwA8WqRRRf+WZyqBYT9jCEGJmNcv4m5FMPXWo8C7v4ncWQUf79Nzmul DrnSyS4B3/xq4BxlKYSHVWAm/L2ezki2sU2RmTt6XmczJze6vMGld7i5HxWwBeBPIxvw d4MOvstMgmlmWh2GqAF0QbgyhJ4RH+9Xq9TXbh4x5yXlvapgZZigj2++JlZr29WhS23Z VSE2keUeOzmgy5vvrrC4bnE00hhzIkD5jMRAOnmJwHT5JFrWEv/tGtD4HXg+cHfYpBDz JcaxeOeJUgT8hjT3jakYMC+YKMN7ODo62CAsdzo6I8AUFBweJuTir+7rlvUjhR9p0TaJ nzOA== 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=xmW+sjyLbZVaaYI0nGScJZGPQ23Ijo39AW0936zXbKo=; b=lJnAvwdABDzwXA7S3zwkVNbWVyhBPj730M1yizB/NAE5auaNlgxsA5v0tHGdFrisMh qBhJv42qNE3cq6EdugvzUG+LQAF5n/5RDUTpNQXUoC8g4VW5dDOSu2DKKyne6JfyH24d XVfvZD6PX2HicPZRCS0mat2vj5UhaOVqZ+XM0K1mJ3svPGMDUaIP8Dd6QakjKUWYSdjf XPmJZgfk6M8s8+SqT5bGxHkKdYoLWqLnAOlgswo0KP4xV4ie6lck0q+dSvNjalDdKvu+ dSXvPcQWVCz5XRycIAnal6u1wZXCXUCqfmHkho+Ym+8/TJlqyUrbtJT/6M6NRSecwNwH ex7w== X-Gm-Message-State: AOAM532GMtSaM6vbqp9yfXxZIkXYmA0LOx68YSlohtKie21gpRKSbqHJ 5sS4ggkI1INkvk0JC9HOfddRDLeRUvtZW3No4P4= X-Google-Smtp-Source: ABdhPJyNDlhmSpQFzsKPWWCLZnLol4QquZbDMtc4KDdzE1qCOVzjNy/xwnDLZzNy7jIKMzi79y2WjLTf4eySCaslujU= X-Received: by 2002:a05:6638:2686:: with SMTP id o6mr21675928jat.68.1612869309098; Tue, 09 Feb 2021 03:15:09 -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: Roman Perepelitsa Date: Tue, 9 Feb 2021 12:14:57 +0100 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: dana Cc: Marlon Richert , Bart Schaefer , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47975 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 11:56 AM 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...? In my code I nowadays start internal functions with '-': function -z4h-foo-bar() { ... } Here z4h is a project-specific prefix. I use '-' because it's consistent with my word delimiter of choice for function names, and because it's not '_' (I use the latter only for completion functions). I think ignoring functions, parameters and users that start with [:punkt:] is fine. It's not uncommon for completions to draw an arbitrary line between showing not enough and showing too much. > 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. It would be great if the config didn't define any functions. Custom sorting is something I would give up without second thoughts if it means the config gets shorter and simpler. There is a threshold of config length and complexity after which users will treat it as a magic back box. It's different for different users but for the vast majority of users it's very low. Every extra line, and especially every new concept or abstraction, will cause some users to lose control over their shell configuration. Users who can tolerate more complexity can easily increase it. Users who cannot comprehend the config won't be able to simplify it. > 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. Correct, that's what I meant. Once again, users who prefer to use advanced features will be able to do that. Many will want to use third party plugins and themes, and that's fine. Our job here is to provide foundation. It won't necessarily be the best but it should be very simple and amenable to customization. Roman.