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,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11232 invoked from network); 28 Aug 2022 14:00:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 28 Aug 2022 14:00:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1661695224; b=gashvZdZO1eujNszVR+9lDQeX6cC3ml0PEh5JjeZ5lRjDlGk1MEYS74Ai7dVeOXumY76wvf1FD 531RobeIdtIj5wsUYTRi7rQJnVvK5gb7OHm/ul5JgjRspiXuwj6uLQPnhnlVQV2fESoqqUORCY aUgW60srMtrN67WsgGdoYyZzu9g4wuTraP5tN0esI+9Cd+CC0sMKpIRStaguMzDSiBXa8q8HWT qccHfUEnuKY5mg3QgRlpauVYmzCeT/c9l4Cj/ZCkcqpwpPKGdDvLylvaW6eYkw1tOlJ7PwxpEf qg+k+wIwr2axlCDks20BqbLLmKxeIsnZDTUByYZFRBXM7g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1661695224; bh=NGkKKkCQAfpoAhIWCEHIWqTTPZ0iWs4ZlSYQGXqkw/8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=q6FtCcH4oMdJ8QTpC3J2hnim18ie0EWGyMZmR9/qs+oFKiizoEfBhggWD4rME1kTz4SoEm2LY5 ttXo2EZz3KKyq9ZgF18gLY+f4z8VtQezqw05wb5pxR6XFZXy404NOttJtmYebsUlIkFQpsEskw RoNLTfeYTQKO9N1dVKBQ7b7rVEf7ArCxQgkDRiqR3+ltKmjrWze+55DL0MeyYQbYY9by8aAbPG KRs4BZ8UzQZ4NQTdLohtKHLK19Eju2AB8v9b5nI03NX2otPtDM70WVjqZJX5b7e1eEf9tUl+9D gyLyy/UG1DvnhF6GiLuiqhCKC1eNOJkkG608VmUlvNy05g==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-transfer-encoding: Content-type:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=A+6JyY9LhprHdHrUyf/g5XeVmHzPh5UnKyDVJo+df+8=; b=mi+jCNBUIjux0JNhgAYnDqcU3n al9p+GmxzpPE9f15TDw3Qk8sRObPLhgFadJlbiKbVCXR4IZkFvVsAXhge2UWaikpNTFebCl6egcgZ 94E/9bfxKSHks8X6WFsd4J6eEXOdOrFJT44d4OHArHmmGgVaV2bq81xPqIxdOuJlCtDOqWU4XB60F F4C42qArnntB469UY9gP6+er/1Q0aKWKpIpVhjh9MD282nO/yYdBhJzYBl0MNCT6epZLukySJKRrP HrNkRMGJ3FrRlclDNub9V834myx9Uf8N8QwKJwIhxlsSRWYD6hSWyUQuCG5J8oZv3eF66VsY2JeUU Xg6pcs5Q==; Received: from authenticated user by zero.zsh.org with local id 1oSIpq-000Mss-Qu; Sun, 28 Aug 2022 14:00:22 +0000 Authentication-Results: zsh.org; iprev=pass (mta02.eastlink.ca) smtp.remote-ip=24.224.136.13; dmarc=none header.from=eastlink.ca; arc=none Received: from mta02.eastlink.ca ([24.224.136.13]:50922) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1oSIp7-000MAl-Md; Sun, 28 Aug 2022 13:59:38 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RHB00FNNW48HB90@mta02.eastlink.ca> for zsh-users@zsh.org; Sun, 28 Aug 2022 10:59:36 -0300 (ADT) Received: from [192.168.0.2] ([24.207.18.108]) by Eastlink with ESMTP id SIp5owgLRfzPbSIp6o5gYf; Sun, 28 Aug 2022 10:59:36 -0300 X-Authority-Analysis: v=2.4 cv=bOXTnNyZ c=1 sm=1 tr=0 ts=630b74c8 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=6rgPa0Eun4EP1IUfdyIA:9 a=7Zwj6sZBwVKJAoWSPKxL6X1jA+E=:19 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvdejledgjeegucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepiedtjeffvefgtdehgefgteekueeggeeitedutddvvdduteetffdvveelgfeukedunecukfhppedvgedrvddtjedrudekrddutdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrddukedruddtkedphhgvlhhopegludelvddrudeikedrtddrvdgnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.18.108 Message-id: Date: Sun, 28 Aug 2022 06:59:35 -0700 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: Most minimal configuration challenge Content-language: en-US To: zsh-users@zsh.org References: <0e8bc96d-17a7-4be2-afab-7a0fd827866f@www.fastmail.com> <5141de6b-dbee-4d4b-3b74-d95a671fa04e@luffy.cx> <33d0bd1a-4da7-416d-a92a-04ceb07d1107@www.fastmail.com> <1c9b6072-26e7-467e-b8cc-7d44f15eaf1b@www.fastmail.com> From: Ray Andrews In-reply-to: <1c9b6072-26e7-467e-b8cc-7d44f15eaf1b@www.fastmail.com> Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28000 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > Sounds like you need a test suite for your zshrc. Sometimes it's a guess what some change might do, one does not even know what to expect. Particularly the 'completion' stuff is baffling.  Here's mine, it sorta works but I despair at understanding the syntax: (Mind, sagacious as always, IIRC, Bart explained that this stuff was written by some Polish genius who then disappeared and left the mere mortals trying to figure out how to drive it or improve it but committed to using it anyway because it was so awesomely powerful. Sorta like using Thor's Hammer to drive nails.) ------------------------------------ # ============================================================================= # COMPLETIONS: zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' auto-description 'specify: %d' zstyle ':completion:*' format 'Completing %d' zstyle ':completion:*' list-prompt %SAt %p: Hit TAB 'for more', or the char to insert%s zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s # allow approximate # Original: zstyle ':completion:*' completer _complete _match _approximate #{ # This will not complete: # Sky\ above\ 49°30\'N\ 123°30\'W\ at\ Sun\ 2020\ Dec\ 20\ 20\ 26_files/ # ... it won't finish the " _files " part: # As of 2021-02-08 it *will* complete but it takes three presses of TAB: #zstyle ':completion:*' completer _files _expand _complete # This completes on one press of TAB. zstyle ':completion:*' completer _expand _complete _files #} #Tab completion should be case-insensitive. # Original: zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*' zstyle ':completion:*' verbose true zstyle ':completion:*:match:*' original only zstyle ':completion:*:approximate:*' max-errors 1 numeric zstyle ':completion:*:expand:*' tag-order all-expansions # cd should not select parent dir: zstyle ':completion:*:cd:*' ignore-parents parent pwd # End of completions. ----------------------------------------------------------- ... the docs do everything but help you understand. > > Or perhaps you would be better served by a /smaller/ zshrc, so fewer > things can go wrong in the first place. Yeah, that gets back to the original point,  what do we really need?  One should build up from the basics one step at a time, while understanding exactly what one is doing.  If we had lots of beginners it would be fun to have a sort of 'configuration club' where folks could share and compare.  But I'll never forget my first efforts to get Linux working, CLI was bash of course and out of the box it comes with NOTHING, not even command recall, not even a working backspace key -- DOS was sophisticated by comparison -- and I almost quit.  Same with zsh -- out of the box it's stone-age naked.  Why?  Give the beginner something with basic functionality, like a backspace key. > > Thanks for the report. Yes, I should add docs, but that's not at the > top of my list. In the meantime, just open the zshrc in that directory > and see what's in it. There is little else there. Good, next time I'm in a shelling mood, I'll look forward to checking those out.  It is almost always the case that resources are there, if only one can find them.