Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: lining up RPS1 and PS1
- X-seq: zsh-users 8960
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh users <zsh-users@xxxxxxxxxx>
- Subject: Re: lining up RPS1 and PS1
- Date: Mon, 06 Jun 2005 15:23:35 +0000
- In-reply-to: <20050606101820.GC26977@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050606101820.GC26977@xxxxxxxxx>
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)%}"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author