Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to do history expansion on a string?
- X-seq: zsh-users 30203
- From: vapnik spaknik <vapniks@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: How to do history expansion on a string?
- Date: Thu, 13 Feb 2025 00:00:29 +0000 (UTC)
- Archived-at: <https://zsh.org/users/30203>
- List-id: <zsh-users.zsh.org>
- References: <1425428928.10126899.1739404829200.ref@mail.yahoo.com>
Is it possible to expand a bang pattern stored in a string? (e.g. "!123:2").
If so how? I've tried the zpty and zsocket modules to no avail.
I want to make a convenience function for selecting bangs using fzf so I don't have to look up the syntax when I occasionally use them (I've already made one for globs & one for parameter expansions).
Regards,
Joe Bloggs.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author