zsh-users
 help / color / mirror / code / Atom feed
From: Miek Gieben <miekg@atoom.net>
To: zsh users <zsh-users@sunsite.dk>
Subject: lining up RPS1 and PS1
Date: Mon, 6 Jun 2005 12:18:20 +0200	[thread overview]
Message-ID: <20050606101820.GC26977@atoom.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 878 bytes --]

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 #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2005-06-06 10:18 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-06 10:18 Miek Gieben [this message]
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

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=20050606101820.GC26977@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).