From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28372 invoked from network); 6 Jun 2005 15:24:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 6 Jun 2005 15:24:04 -0000 Received: (qmail 52246 invoked from network); 6 Jun 2005 15:23:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 15:23:52 -0000 Received: (qmail 20102 invoked by alias); 6 Jun 2005 15:23:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8960 Received: (qmail 20093 invoked from network); 6 Jun 2005 15:23:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jun 2005 15:23:44 -0000 Received: (qmail 51218 invoked from network); 6 Jun 2005 15:23:44 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 15:23:37 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IHO00CIK5FC7JL1@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 06 Jun 2005 10:23:36 -0500 (CDT) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j56FNZPZ022091 for ; Mon, 06 Jun 2005 08:23:35 -0700 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j56FNZVP022090 for zsh-users@sunsite.dk; Mon, 06 Jun 2005 08:23:35 -0700 Date: Mon, 06 Jun 2005 15:23:35 +0000 From: Bart Schaefer Subject: Re: lining up RPS1 and PS1 In-reply-to: <20050606101820.GC26977@atoom.net> To: zsh users Message-id: <1050606152335.ZM22089@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050606101820.GC26977@atoom.net> Comments: In reply to Miek Gieben "lining up RPS1 and PS1" (Jun 6, 12:18pm) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Jun 6, 12:18pm, Miek Gieben wrote: } } Now I wanted to make it look like this: } [some info] [some more] } % } (where RPS1="[some more]") [...] } [I could stretch PS1 and calculate the placement of '[some more]', but } I really like the features of RPS1, like automatic placement.] The whole point of RPS1 is that it gets automatically hidden as command input extends to the right into the space it occupies. But with a two- line prompt, your typing is never going to intersect with "[some more]". So, really, putting it in PS1 is the right way to go about this. However: RPS1="%{$(echotc UP 1)%}[some more]%{$echotc DO 1)%}"