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

Re: s/pattern/pattern/g on the commandline ?



Simply pressing tab at the end of the line instead of enter will
replace the command with the changed line without submitting it.

On Sat, Feb 25, 2012 at 19:46, Moritz Bunkus <moritz@xxxxxxxxxx> wrote:
> Hey,
>
> while we're at it: is there a way to do history expansion without
> actually submitting the modified entry? Meaning I would like to verify
> that my regex fu was strong enough to produce the correct command
> before submitting it. "!!:gs/what/ever" executes the command directly
> if I'm not mistaken.
>
> Kind regards,
> mo



-- 
Damien Thebault



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