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

Re: prevent some lines directly coming from the history from being executed



On Thu, May 26, 2022 at 7:36 AM Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
>
> On 2022-05-25 18:25:40 -0700, Bart Schaefer wrote:
> > Yes, this could be done as a wrapper.  If you want to try to keep it
> > in zle-line-finish, replace
> >   ... || BUFFER=""
> > with
> >   ... || { print -z $BUFFER && BUFFER="" }
> > or similar.
>
> But this has the effect to duplicate the line in the terminal.

Well, yes, but I was presuming the "Confirm? " prompt would appear
between the two.




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