Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: shell script that replaces the command line
- X-seq: zsh-workers 32776
- From: Dave Yost <Dave@xxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: shell script that replaces the command line
- Date: Fri, 13 Jun 2014 14:34:14 -0700
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:mime-version:subject:in-reply-to:date:cc :message-id:references:to; bh=0jMxfvqbp1nWAyeVbTVFnGFSjgewOJQRGgtluhIg6ck=; b=NJ7DcbpyQjpcdTvxPobn4L7OK4/2zBvbR7iExs22Z+Cp7vhLGFzKAn5gL1g4YJdN/D ySR4sTgX6Hh6FfgWUX4UI+XJxiXJ+PtUDIdlo09DikqpPi3ZV41lypmdhgd/qxTWWetX 2Hs/xS08vsNx8Lr8Z0WwcqNDclpqgxLlraPnmI+njN7fNE00JfTDRAjpBXdOdtfjaLPt vSBKgcP5cW4tsCvWF6itEnhIxkXDjMdSsmwXTT2ihqJvHY1sqO1wYZfrCyukxpBUJlTv 0WOjMbnlFMquHzsPiEYQ09B5SgQllvm+itaYv+6NlU730tPlRbWvvpP3ITTKqFPuZaee MGng==
- In-reply-to: <140612234011.ZM4768@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <5804CF24-1E69-4FD3-832C-4B642B010F86@yost.com> <140612234011.ZM4768@torch.brasslantern.com>
- Sender: Dave Yost <daveyostcom@xxxxxxxxx>
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?
On Thu 2014-06-12, at 11:40 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jun 12, 4:07pm, Dave Yost wrote:
> } Subject: shell script that replaces the command line
> }
> } Can a shell function replace the command line contents? I know a
> } widget can do it, but I can't see a way for a shell function to do
> } that.
>
> The "print -z ..." command loads the buffer stack, which is then popped
> into the editor buffer at the next prompt (e.g., after the calling
> function/script exits).
Messages sorted by:
Reverse Date,
Date,
Thread,
Author