Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history expansion
- X-seq: zsh-users 30698
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: history expansion
- Date: Sun, 12 Jul 2026 13:54:15 -0700
- Arc-authentication-results: i=1; mx.google.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=+rFs9XBQASTZZ4FYCe7F7UtkapS49afXEBmHsVW37Bo=; fh=yk3c4scJWo86Za4IR1HBNZw2a+GkUkfVQ7Fs3jnanfg=; b=MhtuUuria9W/MDnIVSCE3/9bc7hcv9Yda57ej5840Vbc5Bf2qo7quiK1W/9WzknK/c ZZS8DadE5wVj3lDYYrlfZLWUHMawK3N01eWRxx0PesSb2LGINrDNGuyhCzeKkghzOwRX Ip+u76gRXUExu1OjI+gWGbl0odOVMoIOjCSaRQnofYE437tKiXo74QC0oxQMG0mfFCBo lfO+TECZcnQyCOxnLDCUPwE+un7WHL/rqVIayhN+UWqiNdqvvVyWOkPA/EXIqvOlbfMq UlKKjv70IiHR6DO8bW5hwmHYzHb1z1avPXg7Y8pvlLMA9A8mmZgLORkYjWpXzmKOTa+a V6bw==; darn=zsh.org
- Arc-seal: i=1; a=rsa-sha256; t=1783889666; cv=none; d=google.com; s=arc-20260327; b=hVe6q15OSyATTVH5M1/FQGe78iDItCSZ4s8kHpkZCJVco89zaYhnZdjXoe7kmieLJW IqoegV0S5hHFW+DCkO+qVKiN7Rcatu8UaRFtP8zLh6ZOoG15Lo8QumjEi1pt0fdom1uf Vf3r9fxqbjAL9HPN7Eupd6X57yZv/Pux2OC9wFnXzkOA+eXMSLVwhCdDx6LBWKRw6n9k WoyeyV+jf8ouIU/qseAfkcO9EBH8fSb5PKLvnJis1MemUz+2JZTXoB0gTSGyOgE9+0sV kQZ4FZRxT8U+vQGnsh+xNQF7G1uNnu3fgTa5JjD7l2y7mDTEYqNJjEZns8AchF7zISIX 0XMA==
- Archived-at: <https://zsh.org/users/30698>
- In-reply-to: <CAA=-s3xAjkK1jcQ+zJFqNgF_1xkezLudrnenjttGxoZPMsUf0g@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <20260712085723.GA719379@qaa.vinc17.org> <AB1505A3-F3EF-4DF2-86A7-D827F6FF6B3A@gmail.com> <CAA=-s3xAjkK1jcQ+zJFqNgF_1xkezLudrnenjttGxoZPMsUf0g@mail.gmail.com>
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