From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10129 invoked from network); 6 Jun 2005 16:39:31 -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 16:39:31 -0000 Received: (qmail 24340 invoked from network); 6 Jun 2005 16:39:25 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 16:39:25 -0000 Received: (qmail 7990 invoked by alias); 6 Jun 2005 16:39:19 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8964 Received: (qmail 7979 invoked from network); 6 Jun 2005 16:39:18 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 6 Jun 2005 16:39:18 -0000 Received: (qmail 23337 invoked from network); 6 Jun 2005 16:39:18 -0000 Received: from sol.nlnetlabs.nl (213.154.224.43) by a.mx.sunsite.dk with SMTP; 6 Jun 2005 16:39:13 -0000 Received: from elektron.atoom.net (vhe-530008.sshn.net [195.169.222.38]) by sol.nlnetlabs.nl (Postfix) with ESMTP id 6101718819C for ; Mon, 6 Jun 2005 18:38:58 +0200 (CEST) Received: by elektron.atoom.net (Postfix, from userid 1000) id 34E572804F1A; Mon, 6 Jun 2005 18:38:58 +0200 (CEST) Date: Mon, 6 Jun 2005 18:38:58 +0200 From: Miek Gieben To: zsh users Subject: Re: lining up RPS1 and PS1 Message-ID: <20050606163857.GA7110@atoom.net> Mail-Followup-To: zsh users References: <20050606101820.GC26977@atoom.net> <1050606152335.ZM22089@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/9DWx/yDrRhgMJTb" Content-Disposition: inline In-Reply-To: <1050606152335.ZM22089@candle.brasslantern.com> User-Agent: Vim/Mutt/Linux X-Home: www.miek.nl 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 --/9DWx/yDrRhgMJTb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [On 06 Jun, @17:23, Bart Schaefer wrote in "Re: lining up RPS1 and PS1 ..."] > } [I could stretch PS1 and calculate the placement of '[some more]', but= =20 > } I really like the features of RPS1, like automatic placement.] >=20 > 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. true, but transient_rprompt is another feature you get for free by=20 using RPS1. > However: >=20 > RPS1=3D"%{$(echotc UP 1)%}[some more]%{$echotc DO 1)%}" ah, amazing! :-) [Small note, there is a typo here, the last bit must be: {$(echotc DO 1)%} - extra '(' inserted] Thanks! -- grtz, - Miek http://www.miek.nl http://www.nlnetlabs.nl PGP Key ID: 0xB18453A1 fingerprint: 002B B079 0DDA 7D44 2B5C CAB0 C3B7 F943 B184 53A1 --/9DWx/yDrRhgMJTb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFCpHwhw7f5Q7GEU6ERAgWSAJwMmw9RiAcc0x/TII9IJy9mfaQ8BACgobag YHjxoz3/ZilPqLh3iyegVps= =dqvj -----END PGP SIGNATURE----- --/9DWx/yDrRhgMJTb--