From: Miek Gieben <miekg@atoom.net>
To: zsh users <zsh-users@sunsite.dk>
Subject: Re: lining up RPS1 and PS1
Date: Mon, 6 Jun 2005 18:38:58 +0200 [thread overview]
Message-ID: <20050606163857.GA7110@atoom.net> (raw)
In-Reply-To: <1050606152335.ZM22089@candle.brasslantern.com>
[-- Attachment #1: Type: text/plain, Size: 988 bytes --]
[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
> } 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.
true, but transient_rprompt is another feature you get for free by
using RPS1.
> However:
>
> RPS1="%{$(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
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2005-06-06 16:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-06 10:18 Miek Gieben
2005-06-06 10:35 ` Thorsten Kampe
2005-06-06 10:43 ` Miek Gieben
2005-06-06 10:53 ` Thorsten Kampe
2005-06-06 15:09 ` Gmane (Re: lining up RPS1 and PS1) Bart Schaefer
2005-06-06 16:23 ` Thorsten Kampe
2005-06-06 16:42 ` Miek Gieben
2005-06-06 16:53 ` Bart Schaefer
2005-06-06 15:04 ` lining up RPS1 and PS1 Dan Nelson
2005-06-06 15:23 ` Bart Schaefer
2005-06-06 16:38 ` Miek Gieben [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050606163857.GA7110@atoom.net \
--to=miekg@atoom.net \
--cc=zsh-users@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).