Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zsh script to run prepared shell commands for a demo
- X-seq: zsh-workers 32577
- From: Dave Yost <Dave@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: zsh script to run prepared shell commands for a demo
- Date: Thu, 24 Apr 2014 13:34:29 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=nDdfvcX5rbB1uQZpY3+XkNal8LWndvpJ4FnouTxmKP4=; b=jOKRlU38bt3sNthKG7W3E4klFF7gH2fwVkutAD8kb1YmQEHeNHZmMgw59NwYRhAT3Z La5eSiZuhq/O44tq2o6YH+rV60JYF46/CPMGGVSdqquxTxEIw9dCOqwCOJ5M8tala56n Qd6sTG/bajvu8/YzAdJ5gEf3sOLhi5ST1Tx+P+zE3lUEKNTzk+WMNN3rnWEBTT3hKsWS 1w1+YZHuUJFiGb5VGpHENOhZ6E8tcP4kJsD5SPwfMsT7L4drzdEHWdYWRg9ed3ETnvqJ WAG0k/73V015/dUzrdN4E60aoShrunIPfEGE/mC5RtLwvsBvag6dfwVHMho2w5z0gh+E mxsg==
- In-reply-to: <CAE5DDCE-D495-4546-ACDA-8605B8644FDC@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: <CAE5DDCE-D495-4546-ACDA-8605B8644FDC@Yost.com>
- Sender: Dave Yost <daveyostcom@xxxxxxxxx>
With the kind help of Bart Schaefer and Frank Terbeck, I think this is pretty much done.
See http://yost.com/computers/demo-shell-commands/demo-shell-commands.zsh
On Fri 2014-04-18, at 12:49 PM, Dave Yost <Dave@xxxxxxxx> wrote:
> Is there a builtin function that replaces the command line with the function's output? The completion mechanism must use such a function, so there has to be something like that.
>
> I want to use that function to build a function I can use to run a demo consisting of a sequence of commands.
> * Make an array of strings
> * For each step of the demo
> * Type a command or a keyboard shortcut that grabs the next string from the array and places it on the command line
> * Hit Enter to execute the command
>
> Thanks
Messages sorted by:
Reverse Date,
Date,
Thread,
Author