From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4658 invoked from network); 21 Oct 2007 22:59:38 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.2.3 Received: from ns2.primenet.com.au (HELO primenet.com.au) (@203.24.36.3) by ns1.primenet.com.au with (DHE-RSA-AES256-SHA encrypted) SMTP; 21 Oct 2007 22:59:38 -0000 Received: (qmail 23524 invoked from network); 21 Oct 2007 18:06:11 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by proxy.melb.primenet.com.au with SMTP; 21 Oct 2007 18:06:11 -0000 Received-SPF: none (proxy.melb.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 40597 invoked from network); 21 Oct 2007 18:06:05 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Oct 2007 18:06:04 -0000 Received: (qmail 14801 invoked by alias); 21 Oct 2007 18:05:54 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 12072 Received: (qmail 14785 invoked from network); 21 Oct 2007 18:05:53 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Oct 2007 18:05:53 -0000 Received: (qmail 39241 invoked from network); 21 Oct 2007 18:05:53 -0000 Received: from mtaout02-winn.ispmail.ntl.com (81.103.221.48) by a.mx.sunsite.dk with SMTP; 21 Oct 2007 18:05:47 -0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com with ESMTP id <20071021180546.UECS25022.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Sun, 21 Oct 2007 19:05:46 +0100 Received: from pws-pc.ntlworld.com ([81.107.45.67]) by aamtaout01-winn.ispmail.ntl.com with ESMTP id <20071021180546.EOOU219.aamtaout01-winn.ispmail.ntl.com@pws-pc.ntlworld.com>; Sun, 21 Oct 2007 19:05:46 +0100 Received: from pws-pc.ntlworld.com (pws-pc.ntlworld.com [127.0.0.1]) by pws-pc.ntlworld.com (8.14.1/8.13.8) with ESMTP id l9LI4w23004771; Sun, 21 Oct 2007 19:04:58 +0100 Message-Id: <200710211804.l9LI4w23004771@pws-pc.ntlworld.com> From: Peter Stephenson To: Gwern Branwen cc: zsh-users@sunsite.dk Subject: Re: Improving spelling correction prompt to generate aliases for future use In-Reply-To: Message from Gwern Branwen of "Sat, 20 Oct 2007 23:39:59 EDT." <20071021033959.GA4471@localhost> Date: Sun, 21 Oct 2007 19:04:58 +0100 Gwern Branwen wrote: > Looking into it, though, it is not very clear how to do this. I though > one could perhaps modify SPROMPT to execute 'typo %R %r', but there > doesn't seem to be any escape to run arbitrary shell commands. You could "setopt promptsubst" and have typo output the prompt (as well as whatever else it's doing) then set SPROMPT='`typo`' -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/