From: Mikael Magnusson <mikachu@gmail.com>
To: Dave Yost <Dave@yost.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>,
zsh workers <zsh-workers@zsh.org>
Subject: Re: shell script that replaces the command line
Date: Sat, 14 Jun 2014 11:45:52 +0200 [thread overview]
Message-ID: <CAHYJk3RhVnaM7YfRvDh6UBaTRHmfiZpfg4u2cP4F6nYhLyxYog@mail.gmail.com> (raw)
In-Reply-To: <8E27557A-CD91-4AE6-81F6-B4D8E1F6F513@yost.com>
On 13 June 2014 23:34, Dave Yost <Dave@yost.com> wrote:
> Thanks.
>
> This is OK,
> 0 Fri 0:08:54 DaveBook yost /Users/yost
> 215 Z% print -z echo foo
> 0 Fri 0:09:33 DaveBook yost /Users/yost
> 216 Z% echo foo
>
> but there must be a way to replace the current command line rather than setting the contents of the next one, yes?
You can most likely use zle -F to do what you want, but it would be
somewhat messy.
--
Mikael Magnusson
prev parent reply other threads:[~2014-06-14 9:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-12 23:07 Dave Yost
2014-06-13 6:40 ` Bart Schaefer
2014-06-13 7:22 ` Dave Yost
2014-06-13 21:34 ` Dave Yost
2014-06-13 22:02 ` Bart Schaefer
2014-06-17 4:31 ` Dave Yost
2014-06-14 9:45 ` Mikael Magnusson [this message]
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=CAHYJk3RhVnaM7YfRvDh6UBaTRHmfiZpfg4u2cP4F6nYhLyxYog@mail.gmail.com \
--to=mikachu@gmail.com \
--cc=Dave@yost.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/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).