Re: history expansion
Bart Schaefer <[email protected]> Sun, 12 Jul 2026 13:54:15 -0700
| Newsgroups | gmane.comp.shells.zsh.devel,gmane.comp.shells.zsh.user |
|---|---|
| Message-ID | <CAH+w=7a9mCwLeHxyM-30CkHVEVyLYs68FfAshNzKCOLPTUBQ6g@mail.gmail.com> |
On Sun, Jul 12, 2026 at 6:42=E2=80=AFAM Mark J. Reed <[email protected]> = 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.