From: Dave Yost <Dave@Yost.com>
To: zsh-workers@zsh.org
Subject: zsh script to run prepared shell commands for a demo
Date: Thu, 24 Apr 2014 13:34:29 -0700 [thread overview]
Message-ID: <E0EFE0DE-9C0A-4F60-A730-7D4569BCB12B@yost.com> (raw)
In-Reply-To: <CAE5DDCE-D495-4546-ACDA-8605B8644FDC@Yost.com>
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@Yost.com> 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
prev parent reply other threads:[~2014-04-24 20:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-18 19:49 function to replace the command line text Dave Yost
2014-04-18 21:55 ` Frank Terbeck
2014-04-19 3:27 ` Bart Schaefer
2014-04-24 20:34 ` Dave Yost [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=E0EFE0DE-9C0A-4F60-A730-7D4569BCB12B@yost.com \
--to=dave@yost.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).