From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18828 invoked from network); 22 Feb 2022 09:10:46 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Feb 2022 09:10:46 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1645521046; b=d1S/5wzGtuAJdpFO4JHZKa2kwNAfRC4dGnaUtjeaobrulE2wQyfZwgWE6rw1JeJU8FuXtTgLpH crmIBPDe1iZEuoHxu55edzFsQ7rVOsn5Aywipa0nnFZEAPA9Xe52FVeB99oAkIrBRVh3I447g+ NGha0ds2PeVMnxhHWo84uAQmE8ICZCZ61UfzQIbJTYcwC1wBCVg2FhkdD2MMMbbzpHtm5K0jok XX1PTbzeRD19pJ5Q+mQqNDS/2gr9iwrpkdx6Nz89/KPqW43SktBvbuM2U8F+meHSIMbgrW928x OX38zew+8Tz4GAVcsgwiZH47YjPZLQtfi/fulu87H3PlrA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (p3plsmtp17-06-2.prod.phx3.secureserver.net) smtp.remote-ip=173.201.193.172; dmarc=none header.from=rayninfo.co.uk; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1645521046; bh=mQK2MKnVpjn1T97tgNZPzcK1P+U+ZLcVqFc82i1/3XY=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=fOehJQttaRkWszIVI7N0i6GEUHF7SryuxHKY/Ova/JDRZYksMd0RTyvHQlgJnaN9729wxBgSsW R4dP1iasPmwYk7kXVcOsO9z4WRILYV3ZInI8o3foPLyDwB/d+8yWlRfduEK4Aq79N4DTt4/uyc QokQSLX4ZEKL742KTZIs+K4QK4TIy3q/mg5GnmPMvqGvM/Za5uXNDHHjOQPkjHFkFqgl1uFdpo zMR76kiICher+6Ln94uRNYbolrImSIse7R1WGOCCKc114L8CCyDU/CirybTsvE7bDcTDCj5VLf Cn56GTFVupCedtJAl1NS/5jrE7KbPUDgPkX8ixbvf9Kjfg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=5CYNMzQ7LO19wcOA2wB8y+dxFwMTbVAzbX8dObe3mCM=; b=flVKkx+NQTWuB3AB3cBZQsJ7Zg mLvCUBDcj74VQbybpzvjki2xJ1Ysfxd3e9sTDCU3Mpf5Zy7kkXEiYLzeDYwoqUpz2UTO/c1aNZ9QF gJ1t0+0rVVGURebxoOk7rg8mJWFh5OrdajnhT/1glLuWYSy4sUNviT2tChVkCGFYq8opRuE4HjN6i w3z9sClm31B5s/62eJR+R9+KjAof51v/1dDzQorcIYtHNpXoBcBcx8wqqyJSkmlkDg2MNXTBtzapf PuRoCXOvPSTfNj5MznOWA0YXvy4yj5ztPpurSFLFG6SdYCRTKgOE6y3KPNKPf7siht9/3KCEoh3Cu Ph7JRmyQ==; Received: from authenticated user by zero.zsh.org with local id 1nMRC1-0007Hd-Jh; Tue, 22 Feb 2022 09:10:45 +0000 Authentication-Results: zsh.org; iprev=pass (p3plsmtp17-06-2.prod.phx3.secureserver.net) smtp.remote-ip=173.201.193.172; dmarc=none header.from=rayninfo.co.uk; arc=none Received: from p3plsmtp17-06-2.prod.phx3.secureserver.net ([173.201.193.172]:52692 helo=p3plwbeout17-06.prod.phx3.secureserver.net) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1nMRBH-0006YT-Gb; Tue, 22 Feb 2022 09:10:00 +0000 Received: from mailex.mailcore.me ([94.136.40.142]) by :WBEOUT: with ESMTP id MRBEnabne8WSYMRBFnAaBA; Tue, 22 Feb 2022 02:09:57 -0700 X-CMAE-Analysis: v=2.4 cv=IeBC5Uma c=1 sm=1 tr=0 ts=6214a865 a=s1hRAmXuQnGNrIj+3lWWVA==:117 a=GdivQuJPIIKEzoeDJFHZxw==:17 a=NyP2HGKU7SIA:10 a=IkcTkHD0fZMA:10 a=oGFeUVbbRNcA:10 a=pGLkceISAAAA:8 a=u0zXqilm7uIXuwz3ClsA:9 a=QEXdDO2ut3YA:10 X-SECURESERVER-ACCT: david@rayninfo.co.uk X-SID: MRBEnabne8WSY Received: from [95.146.215.62] (helo=[192.168.1.231]) by smtp11.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1nMRBD-0006yJ-Qy for zsh-users@zsh.org; Tue, 22 Feb 2022 09:09:56 +0000 Message-ID: Date: Tue, 22 Feb 2022 09:09:53 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Using history / fc for case-insensitive pattern matching Content-Language: en-US To: zsh-users@zsh.org References: From: zzapper In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Mailcore-Auth: 8308408 X-Mailcore-Domain: 840527 X-123-reg-Authenticated: david@rayninfo.co.uk X-Originating-IP: 95.146.215.62 X-CMAE-Envelope: MS4xfCjm84Qgg+PuDWUll+4BDQnatC3PNqhw2bnV82y6S3DN6sGScXbU7ANeu/NHeY2qG0z/N0xUqYQ/AMALJiytZoJKqVPJcmOyqdnu+S3aa0nf3rJ7dCsw amHpGTTvraFZ30OTSZE/77RV24JBQWn5Hmw4+zzpNt4Bd9pYEo+eQJyPfApd+qYP6jDplCCkeHlBmA== X-Seq: 27532 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 21/02/2022 21:01, Mikael Magnusson wrote: > On 2/21/22, Zach Riggle wrote: >> I've written a neat little tool that wraps "fc" / "history" to make >> everything look neat and easily documentable for later reference / >> incident response. >> > You can use (#i) to make a pattern case insensitive, eg > fc -m '(#i)*zsh-u*' > > you may need to setopt extendedglob first. > 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? and i fing it simpler to alias hg='fc -l 1 | grep -i ' zzapper