From: Wayne Davison <wayned@users.sourceforge.net>
To: quarl+dated+1110096615.ea06d0@nospam.quarl.org
Cc: zsh-workers@sunsite.dk
Subject: Re: promptcr workaround
Date: Tue, 1 Mar 2005 08:41:19 -0800 [thread overview]
Message-ID: <20050301164119.GA32736@blorf.net> (raw)
In-Reply-To: <quack.20050301T0017.874qfvbx08@quack.cs.berkeley.edu>
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..
next prev parent reply other threads:[~2005-03-01 16:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-01 8:17 Karl Chen
2005-03-01 16:41 ` Wayne Davison [this message]
2005-03-01 17:06 ` Wayne Davison
2005-03-01 19:50 ` Karl Chen
2005-03-01 17:39 ` Bart Schaefer
2005-03-01 18:20 ` Danek Duvall
2005-03-01 18:50 ` Wayne Davison
2005-03-02 20:21 ` Clint Adams
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=20050301164119.GA32736@blorf.net \
--to=wayned@users.sourceforge.net \
--cc=quarl+dated+1110096615.ea06d0@nospam.quarl.org \
--cc=zsh-workers@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).