From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21286 invoked from network); 13 Oct 2007 20:47:44 -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.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Oct 2007 20:47:44 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 86936 invoked from network); 13 Oct 2007 20:47:38 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Oct 2007 20:47:38 -0000 Received: (qmail 4086 invoked by alias); 13 Oct 2007 20:47:35 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23951 Received: (qmail 4073 invoked from network); 13 Oct 2007 20:47:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Oct 2007 20:47:34 -0000 Received: (qmail 86493 invoked from network); 13 Oct 2007 20:47:34 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 13 Oct 2007 20:47:27 -0000 Received: from torch.brasslantern.com ([71.116.76.59]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JPV006YXB2QP41A@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Sat, 13 Oct 2007 15:47:15 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id l9DKlDMH015470 for ; Sat, 13 Oct 2007 13:47:14 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l9DKlCaS015469 for zsh-workers@sunsite.dk; Sat, 13 Oct 2007 13:47:12 -0700 Date: Sat, 13 Oct 2007 13:47:12 -0700 From: Bart Schaefer Subject: Re: precmd, preexec, and supplied prompt themes In-reply-to: <200710131910.l9DJA3kr003265@pws-pc.ntlworld.com> To: zsh-workers@sunsite.dk Message-id: <071013134712.ZM15468@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <200710131910.l9DJA3kr003265@pws-pc.ntlworld.com> Comments: In reply to Peter Stephenson "Re: precmd, preexec, and supplied prompt themes" (Oct 13, 8:10pm) On Oct 13, 8:10pm, Peter Stephenson wrote: } Subject: Re: precmd, preexec, and supplied prompt themes } } Bart Schaefer wrote: } > It's always seemed a bit clunky to me to do build up function names } > by sticking the theme name in the middle, but that's at nit-pick. } > Maybe all we need is another one of those functions, prompt_ZZZ_off } > (or pick another word). } } We could do it with one level of indirection... That deals with the nit-pick, but doesn't really answer the question of what to do with PS1. Maybe promptinit should store the original values of all the {R,}PS* variables somewhere, so they can be put back on teardown.