zsh-users
 help / color / mirror / code / Atom feed
* Reverse history search and match for a specific token
@ 2021-09-07 10:53 Eric Smith
  2021-09-07 12:59 ` zzapper
  2021-09-07 21:30 ` Bart Schaefer
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Smith @ 2021-09-07 10:53 UTC (permalink / raw)
  To: Zsh Users

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-09-07 21:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07 10:53 Reverse history search and match for a specific token Eric Smith
2021-09-07 12:59 ` zzapper
2021-09-07 21:30 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).