Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to install 'readline'
- X-seq: zsh-users 29140
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Budi <budikusasi@xxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: How to install 'readline'
- Date: Wed, 16 Aug 2023 09:40:19 +0100 (BST)
- Archived-at: <https://zsh.org/users/29140>
- Importance: Normal
- In-reply-to: <CAH0GyZBXXwC1St8zM_QC=SZ5FbUoRSXcA7Tr8t1aHx1RJ6QgmQ@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAH0GyZDVBaTv5ZgBYwJJ3k5zRtxwiKVMMBAcWt=0x1ibpV9qvA@mail.gmail.com> <CAH+w=7Yafjc8hFMQLz4KemED5sm3R3ED+d2vcrvtvw_A96EJHA@mail.gmail.com> <CAH0GyZBXXwC1St8zM_QC=SZ5FbUoRSXcA7Tr8t1aHx1RJ6QgmQ@mail.gmail.com>
> 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