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

Re: shell script that replaces the command line



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