Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
function to replace the command line text
- X-seq: zsh-workers 32565
- From: Dave Yost <Dave@xxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: function to replace the command line text
- Date: Fri, 18 Apr 2014 12:49:57 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:content-type:content-transfer-encoding:subject :message-id:date:to:mime-version; bh=oVDQAR3noFUXbWrEiKPOFjmXyPDuSy3EtkJsfkGzZzA=; b=o2nXG0LIdlVpkPT0i7HDnpaMEX9+qMkV+roK0SWDoBg4X8NPN1XR2nE/hdjEZy6snv p1g2jvGnUKsjrozgWqW5iedg17tBOzyrHkmMteBqZ1lGfyrbvgu7NyINJDN5KGl5KQJr lVnI3YC+2NabTYtgAPOB/68n4Itewg28izYEF+uT5zXeK47l4s9JMv983N8qYMb7Pn9P XfkmUkNf4QkSVXaoC/gTdSlgHLs+BRbPHWK4sDZjXTOGhUehpO6W46Y1YCX/LRL99d3g nz6z3qkF9jZI4FRVOkiFedJWtO7NhdGoV8IkenXDEq3dZUdCoiw7bbiiZF50mZ/2Hgt2 SWlA==
- 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
- Sender: Dave Yost <daveyostcom@xxxxxxxxx>
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