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 11984 invoked from network); 10 Feb 2021 06:58:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 10 Feb 2021 06:58:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612940315; b=TUpxPuUF0NcbVK7vdBSkluMZ70UWU558JQAClkDmlZoTcakZz2czA4bUQHQKMXP0bRkcfokLzy vGG0BBGm3l23vZui+/Qlwi/7HoUSTpMOC6FKNXJ0XOlnWn5YZsVhSLiRTbzYIt8DAwSNBqiCmB P3/kgNkAHW+dVs9xdK3sAKfm41fZfOcIKfNNDQ82Vkc1jqFIasv3QMJjg7ZPqQ5cWT9i36Nk+X QbUU7cuyVOzykiS38wx2GuUE1HUTMJ2P9juTwlInhSalEpQYL2v+nyr8kQdKu25Bp13AvRd+Pp qHmSCQ3q0h0kF6NTEx1JFdRAtlEmzU4vXcRNdPNo4e0LyQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f172.google.com) smtp.remote-ip=209.85.208.172; 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=1612940315; bh=msXujRnipchlPjliLVu5ZFi2Ef3YtwaEJDKqKiEPfv8=; 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=tsluh8c2LAgLANmNnstax97Xd7vrX3XWqsZwb3urVycJgaNjX374sa5Ua+8+U+To3C8mqGAzXp 6qLWpyPkgJvHReEZJAXjwF+UUzWfflQc2drJhx5bo0UoM+RFdAb8Zco0lCBkwVsEn742TKVZYd MYTSkj8riY7rOxx4o5raUFTqhU9ZdqTvaPICUP2KFnwDP1a2oUqIU0Bi+2ANZJzgbkUy3y5mjO jwLrTlNxmyAIRcbT7oQ+Da4R+sWQHcV8FwN/+4w4g9D+IfwnHjdtHVHkQffVrvW1f1+CmX4ZLb xqdBx28IObpqkd7x+Xj+k0Yk1pWA+OR7XUEayl1KVKUlkQ==; 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=msXujRnipchlPjliLVu5ZFi2Ef3YtwaEJDKqKiEPfv8=; b=uYdRymaO8LV6pVs8dI3H5YCCVM yzf6XsHxxKG/cl3nyvJl+AXdTbFQTM5nrcpz+u4F/X7J/ivXtE59F6jNXhqLKxI0JzfjgMCyEkyJ7 b0Sw0FYmcs1UzyKOIeJlU4lObfkEtY6iWNaCWSVPOEpzKnocNKTRXriFVci7TBlNBZbJebw+D6yfP J0u5bO7+41Cbt0A47BTd89isEjunlhqf+zh4v0wdR3lzfzcZYA3RBLYXe2PZCgVTmzHxBuDt63hqr 9CWS9M+rzYLAMJKm+/JjX5djrj0i6M9utFpsTpPJgES8JufNfYNNBqrl3/QtehWjKJGkAGbicA26z C4Em1C3w==; Received: from authenticated user by zero.zsh.org with local id 1l9jSM-000IWn-JL; Wed, 10 Feb 2021 06:58:34 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f172.google.com) smtp.remote-ip=209.85.208.172; 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-f172.google.com ([209.85.208.172]:35317) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l9jS4-000IO3-RK; Wed, 10 Feb 2021 06:58:17 +0000 Received: by mail-lj1-f172.google.com with SMTP id a17so1460171ljq.2 for ; Tue, 09 Feb 2021 22:58:16 -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=msXujRnipchlPjliLVu5ZFi2Ef3YtwaEJDKqKiEPfv8=; b=gC3kzIeyhUs2/eRAheUStJUlqeR+/YoPkTHtHlldtyPry25t5DcstzudocRSp6leAF S5u8Gv7vUjGOVUCzDaYcuhy0m4nCp6+/72wRF5SfKvm3T5HkprFnH1QqjENdTk6Q5mIA 9cZdP/P/1DD10OMJH4rvyPYZ+lgefKrH4fSp5NXI1GpFyHkIWYvkk9Z9vMWsjAy2aqo7 2Bc+B+dbLQtQxlvMibcXT10n4W7pBup5mpihSYZcuRFtSkBH97aQVhHhtzamt0dcz2aL aPxVc/e2LwZq9o7qzUq7pm15bSsnyf7VFLZ91DAusCakmYUIgmJRmXQ65n0vPCngtZao vHAA== 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=msXujRnipchlPjliLVu5ZFi2Ef3YtwaEJDKqKiEPfv8=; b=VkFIj1OqmzqNjS3S0fDZtlUgVI6cdRqICLTsW4rN3IaKDyMr4tKT5lpsuJWygNEuct dC8r93VvhZr737Lfsco26tKUs1gJ5kg4jz28WOh3fQedqKLJPNlSRM7Ru3BtxzwhGJ/V CsWbdFZcazoyVXZ4k0aTXFGENje6bRcX76wRI2MxusoiZSbUaEa6WemHqvWKe6kkYIEb oG2KujlDoFpDSdeH51BUdvtlJHVIf5hu5x4GrZsVgHunxFViYJwvZORr0pJIaERbeF8l QCwMfTXrARzlStLfQGY8O47JVjtXTKZu9pejVtuzSkkvrfq875Qn+CT6vlFEn2lNA/dm orXQ== X-Gm-Message-State: AOAM532iP2XoMq8C7WD1lkn4x6HGJZS/RFXLBnTmZc6NTNFsDAPnkeyV EmFko8z00YPs+l2fO5INqkaClHDf/d5u3WAOk/HIMnqv4rydMA== X-Google-Smtp-Source: ABdhPJzr8nMOJduOFLTaPCVWOlD5+xhyTE1vw/lcMsJEstv/CbtmsQpACKkyB8fbq3IjEfpoDrc10xyDf/TgbAiWvkg= X-Received: by 2002:a2e:9f4e:: with SMTP id v14mr1043911ljk.497.1612940295989; Tue, 09 Feb 2021 22:58:15 -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> <5C018E61-8E72-4647-8A53-0F9D5BB82146@dana.is> In-Reply-To: <5C018E61-8E72-4647-8A53-0F9D5BB82146@dana.is> From: Marlon Richert Date: Wed, 10 Feb 2021 08:57:39 +0200 Message-ID: Subject: Re: Rewrite of zsh-newuser-install To: dana Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47993 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 Wed, Feb 10, 2021 at 1:15 AM dana wrote: > > PS1='%F{magenta}%$(( [#10] .2 * COLUMNS ))>..>%n%f@%F{cyan}%M%f%>>:' > > PS1+='%B%F{blue}%$(( [#10] .2 * COLUMNS ))<..<%~%b%<< ' > > The %M (instead of %m) feels excessive. Ellipses have three dots, not two (see > below also) Would using the actual ellipsis character be OK? Or do we have to stick to ASCII? > > RPS1=' %(1S,%S${SECONDS}s%s ,)%w %T' > > Again the time stamp actually feels *less* useful with transient RPROMPT than > it already did to me, and i'm also not sure if the average user really wants > the execution time, but i'll go along with however the others feel (see below > also) I'm also trying to show off Zsh features to new users. If they don't find it useful, they can always delete it. :) > > setopt PROMPT_SUBST > > I think most of the devs discourage PROMPT_SUBST. If nothing else it feels a > bit advanced for what we're trying to achieve here Why exactly do you discourage the use of PROMPT_SUBST? Why is it a problem?