zsh-workers
 help / color / mirror / code / Atom feed
* function to replace the command line text
@ 2014-04-18 19:49 Dave Yost
  2014-04-18 21:55 ` Frank Terbeck
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dave Yost @ 2014-04-18 19:49 UTC (permalink / raw)
  To: zsh-workers

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-24 20:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` zsh script to run prepared shell commands for a demo Dave Yost

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).