Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Reverse history search and match for a specific token
- X-seq: zsh-users 27098
- From: Eric Smith <es@xxxxxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Reverse history search and match for a specific token
- Date: Tue, 7 Sep 2021 12:53:55 +0200
- Archived-at: <https://zsh.org/users/27098>
- List-id: <zsh-users.zsh.org>
Hi zshellers,
I use event history matching a fair amount and can subscript the command to return a specific token like this.
$ !?foo?:%
for the token containing foo
$ !?foo?:$
for the last token
How would I match for the token containing `bar`?
Thanks for the tips.
Best wishes
Eric
Messages sorted by:
Reverse Date,
Date,
Thread,
Author