Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: shell script that replaces the command line
- X-seq: zsh-workers 32778
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Dave Yost <Dave@xxxxxxxx>
- Subject: Re: shell script that replaces the command line
- Date: Sat, 14 Jun 2014 11:45:52 +0200
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AG2uhpc2hRK0MKbh6EhI+rBIWE93vGOZDi23fBl6ULY=; b=xn2LHWIjQbF1E7tpd7bf05YOPAH1OdTimJ37iAj4aGI6E4O2nxNRS41Okq2xNSq1zS zt0UrKOITxC49j9yBFzYCENNTdclEw8DeVTvYI1BAQy25WkBn532LI9m4sxVaFe9CoCu Eym+lp02ANE0e9WJ9GQK063DSdFuosEeMleb0TxZtZh5V+ESTmdXgqiA33SSojx28/57 EO6Y/rXF81ra3ys+Z1CKgOQbOwJXldW7G1DeyYmviYGm8sYDpEeAj44JTJRHoYYUvdnc SX/+zs/LZCxxJknkqCLBR2tTqU1IZ3lwfGG7KhDowXNfzbWz6sX56DhFLus5AX0AuuGD CIkw==
- In-reply-to: <8E27557A-CD91-4AE6-81F6-B4D8E1F6F513@yost.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> <8E27557A-CD91-4AE6-81F6-B4D8E1F6F513@yost.com>
On 13 June 2014 23:34, Dave Yost <Dave@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author