Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

lining up RPS1 and PS1



Hello,

I've been looking into the RPS1 variable to spice up my prompt.
Currently my prompt looks like this: (it's a 2-line prompt)

[some info]
%

Now I wanted to make it look like this:
[some info]                  [some more]
%
(where RPS1="[some more]")

But as the PS1 includes a newline (to put the '%' on a seperate line)
the prompt looks like:
[some info]
%                            [some more]

Is there any way to make a RPS1 line up with the first part of the PS1
/and/ still have a newline in the PS1?

Thanks for any info!

[I could stretch PS1 and calculate the placement of '[some more]', but 
I really like the features of RPS1, like automatic placement.]

--
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: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author