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

Re: history expansion



On Sun, Jul 12, 2026 at 6:42 AM Mark J. Reed <markjreed@xxxxxxxxx> wrote:
>
> I use history substitution all the time.

I do as well, because I spend a significant portion of my time using
bash on virtual hosts where zsh is not installed and it would be
counterproductive to customize it.  Muscle memory for !! et al. is
more valuable than ZLE (or readline) customization.

Even though the contributed replace-string function exists, using it
doesn't save many keystrokes over !!:gs/foo/bar ... and oddly it
doesn't default to acting on the immediately previous command line the
way replace-argument does.




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