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 21770 invoked from network); 5 Apr 2021 21:45:22 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 5 Apr 2021 21:45:22 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1617659122; b=Klv83MgDaN2/ZVMlxs0G7JQQNRS9mj1kRJCvEsyJY2HrpNOYlo2sbjU+pLlWFsBrMc0yq3BBoX NyozsKAFygy0Sob8oy2B6XDclRDuCRK+tl8HiAFoVBMBkQT8TCDj0i9bBt65qBen5mCEKWvyL5 UzJezbXda+jRY7EIM8v91i8wiPY7feTqFy4YKNgcqfLJvbs8mM30VAAGS5Rqp9cuD9/VJQMuO6 8M4A0a4wVYa5D7h163j55thA08sNCl8UrfEF6CkMwHyKnRl+FIhFrkrBnoY0aoXQfbz0cYirif 6laHduI0t/Z3IQCelMOKnundThwBLeDlGcnrcmNe1dY+lA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f50.google.com) smtp.remote-ip=209.85.210.50; 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=1617659122; bh=/h5U0r5C/50VH2+T6qbw5hLMsRppSRei9C+ZLgzFJWw=; 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=Y8BivZrG2ntT+Oc4E35g+AE7vILXlgBax4oCAhoXORS0M/g81gpGWLuXEqeF5kyzsaSckSu5NC EdfbAIL5SdSPS2IdL0O3p3xF1dErpuR37QoYrHZ5Q5LikWhzRccP8mayGRj4PKB4sg0tmQc7PW 9E/Wx2gQ2w1qmxzt92CR9EkO0hnOtK42UuolvkHsPYx4g2UBG5uNV7jvhYk0J1Ai9sQ1IYAmcz bkFgYgmQIZ67I6/a3FMyZ4tUHEHCFeVFRwBrpGndYjMcee9soRzeyADjPSq4Yo3ZTl+g7qtScb nJnI4MMpndMmpjsnqw+PnUvBFOuO9JoSrdriv9lubHN7DQ==; 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=e1c8COGjql9MdNpqbP2Qe9w5iKsag+nV1q7vBfTbt2I=; b=u+dtyE9IQGhLuSPCKHEpUjldQl klLvaCiJVREhrFh5bvcpUrGVIv+p9y+byySALT7HjcKM3N9qozm6B0S/DF/+v3gdkWt4Mwj02elzC t9WcLpS2AmxFOXTsXnklCLVPF2KX1M+aNJnmCr6C72XgL+pAWw6MOtI5sxDIotUcl/Ri0cyK+MfYF 4+Y1P35FSOilhScSWJGhz3kAVkD0hK9UADyOEyIBfdDpy97JhHeEk5ZAP+rT6ReRabpc6R+CtJhEU oKxfs5t7GDEizt2k9xIglEpXs2KFDdiwzOfzlaKVSSZKJGs+C+XWZQ3TpUJ9rbpjAxNhOdck7pV3u 8XAeWIrg==; Received: from authenticated user by zero.zsh.org with local id 1lTX2A-000E2U-3i; Mon, 05 Apr 2021 21:45:22 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f50.google.com) smtp.remote-ip=209.85.210.50; 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-ot1-f50.google.com ([209.85.210.50]:46660) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lTX1v-000Dnk-Go; Mon, 05 Apr 2021 21:45:08 +0000 Received: by mail-ot1-f50.google.com with SMTP id 68-20020a9d0f4a0000b02901b663e6258dso12635230ott.13 for ; Mon, 05 Apr 2021 14:45:07 -0700 (PDT) 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=e1c8COGjql9MdNpqbP2Qe9w5iKsag+nV1q7vBfTbt2I=; b=HRTZmK/0TbQq8DhED6PMv66ewMXA8bE/lTaEP8E2sgtuykSUMWndWKV9fjWWJ7cBbe nT1GUnXBsnmaBp+OBQN4EHtepssYyV2VVk12nr04Sl84f9VNy4Hi6z1CWkHJKl6tHHHj j8Roryl9nvKe2ihcyR3En+M00OMa/l2H+KJ+CROEWzCB/75T+fOzIHxNMfSDinUOBuyI lwh/yczVKTDnIejkhGkZzYPnbBwZnKHLgEJ7p6iRkdmVOFXZEh+b/SBxVyhxOhxQCKU/ 3ZXqISGxoiFhS+wp3ERmaUcquO9YXC2mvc/t0KNx0mWOhznKIKyT9y7QJ+63e1NxUedf 3NTg== 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=e1c8COGjql9MdNpqbP2Qe9w5iKsag+nV1q7vBfTbt2I=; b=lHJH1HMljB7dzpxZqDSs+8ahmF9vu8mASIeyIFlvWn3O1WDsU+BlieTkdCNopznv5l y8eVYlhgDlP1mggqYFtu1RZ6WEvhTFlUFOjecmqFduusFIM4yyp/XiFlviEOebG1XIxd drNcwQdcmZ9c0ZG392YkU1oVJ7XxJU/5rC4siEhHXmUTv4uCYJJ7h0h5NkWeDof3GeXO 4f/ObuQPGMshE7JAgtmfVSpFR8yaLKle/hNxjkcmeQX4ElsG1ilgM4ihJtpG8SE6D0/r B8AvBQ4Z5g7RQAAhbnV+D6KWeTErBFzmaUYczzq5Jpu+am5H7wSswiLUn7cDr4ONg9US FsjQ== X-Gm-Message-State: AOAM533qQkU4aIgt/kaeb+jRpirO5MICNOb4+Dadm33YulFSfcd1F/7s zx3DZ8/86Bu78/TC+DWsBrKzMP+8tyUCWIFbh4HwfQ== X-Google-Smtp-Source: ABdhPJx5A1EjQDtD0uLVHalmoF7KVsC0Yyes76A7bUX/qSBvpuXZOHzWU/+efV+aI4RgwQNX2/YdKHlmlUPnrufhCHE= X-Received: by 2002:a05:6830:17d2:: with SMTP id p18mr23870038ota.161.1617659106364; Mon, 05 Apr 2021 14:45:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 5 Apr 2021 14:44:55 -0700 Message-ID: Subject: Re: Rewrite of zsh-newuser-install (Mikael's subthread) To: Mikael Magnusson Cc: Marlon Richert , Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48409 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: On Mon, Apr 5, 2021 at 12:44 PM Mikael Magnusson wrote: > > > # Prompt settings > > This is 70 lines that should be a prompt theme, not pasted verbatim in .zshrc. There was some side discussion about prompt themes being unmaintained and therefore unsuitable for this. My take is that we should find a way to put some effort into maintaining it. We did just have a few patches for it, so I personally would be fine with this going into a theme. > > typeset -A key # Declare `$key` table, without overriding any existing values. > > How could $key possibly already exist as an associative array at this > point? Also, won't this by default print everything that's already in $key if by some magic (/etc/zsh* or ~/.zshenv ?) it does already exist? > > WORDCHARS='' # Characters treated as part of words (in addition to letters & numbers) > > Why are we setting WORDCHARS to the empty string here? There was a side discussion about this, too. The default WORDCHARS acts like the stty driver, emptying it works more like emacs. > > bindkey -M menuselect "$key[PageUp]" backward-word # Page Up > > bindkey -M menuselect "$key[PageDown]" forward-word # Page Down > > I think most people expect these keys to scroll history backward/forwards. I don't recall what difference being in the menuselect keymap makes here. > > bindkey -s '^[-' "^Qpushd -1$key[Return]" # Alt-Minus: Back to previous dir stack entry. > > bindkey -s '^[=' "^Qpushd +0$key[Return]" # Alt-Equals: Forward to next dir stack entry. > > Might go as far as say NAK on these bindkey -s abominations. Yeurgh. Agree, avoid bindkey -s. > > # Make each entry in these Unique (that is, remove duplicates). > > # See http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html#index-typeset > > typeset -gU PATH path FPATH fpath CDPATH cdpath MANPATH manpath > > specifying the scalar halves of these tied variables is superfluous. Again, previously discussed ... the man page recommends specifying both halves because of the -U option. > Overall I think there's a bit too much stuff in here. It's longer than > some (many) actual personal .zshrc files I've seen. I tend to agree.