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

Re: shell script that replaces the command line



It would be good if "buffer stack" were in the index of the doc, and it would be good if the PDF form of the doc had internal hyperlinks.

On Thu 2014-06-12, at 11:40 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:

> On Jun 12,  4:07pm, Dave Yost wrote:
> } Subject: shell script that replaces the command line
> }
> } Can a shell function replace the command line contents? I know a
> } widget can do it, but I can't see a way for a shell function to do
> } that.
> 
> The "print -z ..." command loads the buffer stack, which is then popped
> into the editor buffer at the next prompt (e.g., after the calling
> function/script exits).



Messages sorted by: Reverse Date, Date, Thread, Author