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 16548 invoked from network); 12 Feb 2022 03:40:13 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 12 Feb 2022 03:40:13 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1644637213; b=qRD4w2a5Ew30p0O6IkWqr/nQLVSjFve0WimlLkBKmFWUZ4YBBqF3JSUxN53wOIvBbzc+2i0yKY T/b7WrfKL8L9isnzooOOqJJMSZuaGQQTgU6oCuA2CabRTSKNaIRgoGvGrIH/a/H7bRr/d4tglH zAtorFUnpSJz89cT1nXq48cD6S0R2nIr4zb3MBYhUFoWtcvy46D79CHe6ANijCU1fEQ+TkiyVU 3CM0fKzhM0Ez6pj+p4eS2Ln1zjiUw67Q3JityIo8bVPsxX+A3xFN4wvBMcAsdb4NPgnnjvh9of Wooy6snXyK/9/VMOJLh0kwFG4KaC/wt29NFf4gFnujzL9w==; 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=1644637213; bh=wl/bCNvSBBEMvr04D1E73O5Jx9FwqzgNhUC06H8bVL8=; 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=J90I69Em4Yl41lPW1nSBA7vmc2ICy6PWz3QFac+ZfmuDpdFnO+elTDr4mLe7A/4ng5HEERvCSa /jANbZG4Lwj1uc3ytJuKv8Il01IKjRNzEOv1BhgGjghR69N8dZMmEU5FBZr7+SRGvc7TOPRnqQ ey1vT/wYgG7NgbO3CMRJELfmNdbMrqd/ZZJk57oMu97cRhkrd85oOTYJlRHE/lr3zH0KuOZou8 03aEWFclA/2PRy9djKdRw/iQ9vzYqciWwPuCOc2a3RoY5vAbfP9Vl/BTBcX9YbIKgLXvujXd2W JGvPovH7Nt6DyKd5P+xCFKMFQx9PPB3SrmGvD9kKpQ5bUA==; 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=aZUhIdJUUcnRxfZ+Qn7eT3na4q5+jOHyzycBlGboN28=; b=fGZchoQFYX7GR0+6Dq8mfDUa0A tIW+spoWnZPogyCLqPD+6tgDospfXRT86HPttE67AnvQ0sfVfosg+hDttjEvrWNYsgVF5vnU/VEKl l0Qmnig1KruPcUYfd8+3H0Wz1IDuZTYT43BA6lrN3HJ22mT+oywm9iohUCV9QCqytMv2Fmfhr/Hi3 IUsK3txgVVDQ3OmK4TdYunW/K95uCv7lbPL0AuEUTjcLmYSidLQUeczMAYtSDaTec7FskAOwADh1R Pr0tf9aj8KPfZw1AxCGNYjwYxaEZdPDiINA7ABddwJWt64UQLEcZbjiK91+9aXcW2H8kxrG5liZeV VFFX7QvQ==; Received: from authenticated user by zero.zsh.org with local id 1nIjGd-00054M-5y; Sat, 12 Feb 2022 03:40:11 +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]:60756) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1nIjG3-0004LX-7J; Sat, 12 Feb 2022 03:39:35 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta02.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0R76001EMA3KXW50@mta02.eastlink.ca> for zsh-users@zsh.org; Fri, 11 Feb 2022 23:39:33 -0400 (AST) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id IjG0nLIqJldlKIjG1nGFW8; Fri, 11 Feb 2022 23:39:33 -0400 X-Authority-Analysis: v=2.4 cv=NLwQR22g c=1 sm=1 tr=0 ts=62072bf5 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=S9EHHNrA77sanjhYeMgA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrieeggdeiudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepuddprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Message-id: <82de0721-1560-5686-7c11-990bf2a68de7@eastlink.ca> Date: Fri, 11 Feb 2022 19:39:32 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: zsh function breaks after error Content-language: en-US To: zsh-users@zsh.org References: <0oea0h1nt14oll0drq3450vng70ro0ga43@tlc.com> <44fac8cb-589a-37cf-49b5-47d8836a3647@eastlink.ca> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 27517 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: On 2022-02-11 15:31, Bart Schaefer wrote: > > Consensus is hard. For example, I personally I think tens of > thousands of lines of history is unnecessary no matter how much RAM > you have to throw at it. I picked that line almost at random.  Thinking about it, mine probably is too big. Point is that some reasonable amount of history is something that almost everyone wants. > > The other question that constantly arises is whether the goal is to > make the shell more helpful out of the box for relatively > knowledgeable users, or to make it more attractive to newbies. That's why you have several offerings, from basic to ... well, the 'advanced' configs could almost become rococo fun-fests, just showing off for the fun of it.  Don't hafta get anything perfect, just close. I still vividly remember the very first time I got Linux installed and booted. There I am at a stone age prompt and I had some instructions printed off (from Windows) as to what to do next.  Well, it was bash of course, but NO history, NO backspace key, NO prompt (to speak of) ... other missing stuff, can't remember ... anyway it was so bloody primitive that DOS looked elegant by comparison.  Eventually I got an editor working and I think it was 'joe' or something, that made edlin look sophisticated.  I almost quit.  Initiation hazing or something? But, after jumping to zsh, I remember when I started thinking about prompts -- I can't remember where but there were samples named 'Oliver's prompt' and 'Bart's prompt' and so on and you picked one and tried it.  Marvelous.  Tune to perfection later, in the mean time it's very good at least.  Suffering is not good for the soul.