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

Re: How to install 'readline'



> On 16/08/2023 08:01 Budi <budikusasi@xxxxxxxxx> wrote:
> to have feature on previous ask (forget its link) ,
> 
> "
> What is zsh equivalent for :
> 
> read -e -i "This is pre written text " t
> 
> get user into readline with a pre written text ready to edit an save
> to a variable
> 
> "

I would definitely second Pier Paolo Grassi's recommendation --- vared
is the way to do this in zsh, as he said.  The simplest form is:

var="This is prewritten text"
vared var

pws




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