zsh-users
 help / color / mirror / code / Atom feed
* Using history / fc for case-insensitive pattern matching
@ 2022-02-21 17:43 Zach Riggle
  2022-02-21 21:01 ` Mikael Magnusson
  0 siblings, 1 reply; 8+ messages in thread
From: Zach Riggle @ 2022-02-21 17:43 UTC (permalink / raw)
  To: Zsh Users

[-- Attachment #1: Type: text/plain, Size: 724 bytes --]

I've written a neat little tool that wraps "fc" / "history" to make
everything look neat and easily documentable for later reference /
incident response.

    $ command echo 'Hello, zsh-users!'
    Hello, zsh-users!

    $ hgrep zsh-u
    # [2021-12-18 06:13]
    git clone https://github.com/zsh-users/zsh.git

    # [2022-02-21 11:39]
    command echo 'Hello, zsh-users!'

The down-side of this is that it appears "fc ... -m expression" is
case-sensitive.  I expect that Zsh has excellent documentation on the
patterns and how to make them case-insensitive but I haven't managed
to find it yet.  Most of what I've found seems to correspond to file
globbing, which isn't what I'm trying to do here.

Any tips?

Zach Riggle

[-- Attachment #2: image.png --]
[-- Type: image/png, Size: 36950 bytes --]

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

end of thread, other threads:[~2022-02-22 13:08 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 17:43 Using history / fc for case-insensitive pattern matching Zach Riggle
2022-02-21 21:01 ` Mikael Magnusson
2022-02-22  9:09   ` zzapper
2022-02-22  9:27     ` Peter Stephenson
2022-02-22  9:39       ` zzapper
2022-02-22  9:47         ` zzapper
2022-02-22 10:18           ` Peter Stephenson
2022-02-22 13:07             ` zzapper

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).