Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Length of %? in prompt
- X-seq: zsh-users 4698
- From: Ian Lynagh <igloo@xxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Length of %? in prompt
- Date: Tue, 26 Feb 2002 18:42:14 +0000
- In-reply-to: <Pine.LNX.4.33.0202261023070.14523-100000@xxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20020226180806.GA16191@xxxxxxxxxxxxxxxxxxxxx> <Pine.LNX.4.33.0202261023070.14523-100000@xxxxxxxxxxxxxxxx>
- Sender: Ian Lynagh <ian@xxxxxxxxxxxxxxxxxx>
On Tue, Feb 26, 2002 at 10:26:09AM -0800, Bart Schaefer wrote:
> On Tue, 26 Feb 2002, Ian Lynagh wrote:
>
> > I don't understand this 0 case though - is it a bug?
> >
> > ian@majestica:~% export PS1="%10>-->0--------%<< "
> 123456789
>
> There are only a total of 9 characters there, so no truncation is needed.
> You need one more hyphen after the zero to get 10 characters.
Whooops.
One more thing...as the first % escapes the second in
"%%1v>-->%?---------%<< " it looks like there is no way to change this
value on the fly without recreating the prompt - is this correct?
Thanks again
Ian
Messages sorted by:
Reverse Date,
Date,
Thread,
Author