Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: promptcr workaround
- X-seq: zsh-workers 20899
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: quarl+dated+1110096615.ea06d0@xxxxxxxxxxxxxxxx
- Subject: Re: promptcr workaround
- Date: Tue, 1 Mar 2005 08:41:19 -0800
- Cc: zsh-workers@xxxxxxxxxx
- In-reply-to: <quack.20050301T0017.874qfvbx08@xxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <quack.20050301T0017.874qfvbx08@xxxxxxxxxxxxxxxxxxxxx>
On Tue, Mar 01, 2005 at 12:17:43AM -0800, Karl Chen wrote:
> Here's a way to simulate adding the \n only when necessary:
>
> function precmd {
> echo -n ${(l:$COLUMNS:::)}
> }
Nice! I have the no_unset option turned on, so your suggestion outputs
a warning for every precmd, so I changed the echo to this:
echo -n ${(l:$COLUMNS:::):-}
Thanks for the nice heuristic!
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author