Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

zsh script to run prepared shell commands for a demo



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