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

Re: zle functionality in scripts?



On Jul 20,  5:48pm, Tyler Spivey wrote:
}
} Is there a way that I can get command line editing functionality in
} scripts?

vared



OK, so maybe a one-word answer isn't quite enough.

Look up the "vared" ("var"iable "ed"itor) builtin.  Unless you have a
very old version of zsh, vared uses zle even when invoked from a script.



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