From: zzapper <zsh@rayninfo.co.uk>
To: zsh-users@zsh.org
Subject: Re: Using history / fc for case-insensitive pattern matching
Date: Tue, 22 Feb 2022 09:39:50 +0000 [thread overview]
Message-ID: <90c8c271-6ac0-2a4a-e19a-9f179fe1f399@rayninfo.co.uk> (raw)
In-Reply-To: <894112583.938338.1645522071761@mail2.virginmedia.com>
On 22/02/2022 09:27, Peter Stephenson wrote:
>> On 22 February 2022 at 09:09 zzapper <zsh@rayninfo.co.uk> wrote:
>> On 21/02/2022 21:01, Mikael Magnusson wrote:
>>
>> Thanks Mikael for resolving this
>>
>> (i needed the -nl)
>>
>> fc -nl -m '(#i)*Mortg*'
>>
>> but there's something clunky with the fc -m match .. I can't get to
>> match all of my history?
> Try sticking a "1" at the end of the line to get the whole history.
> It still does the match, but it now starts searching from the beginning.
>
> pws
# pws: yes thanks the following works
fc -l -m '(#i)*Mortg*' 1
(should this be documented?)
zzapper
next prev parent reply other threads:[~2022-02-22 9:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-21 17:43 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 [this message]
2022-02-22 9:47 ` zzapper
2022-02-22 10:18 ` Peter Stephenson
2022-02-22 13:07 ` zzapper
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=90c8c271-6ac0-2a4a-e19a-9f179fe1f399@rayninfo.co.uk \
--to=zsh@rayninfo.co.uk \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).