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

How to do history expansion on a string?



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