From: Lewis Butler <firstname.lastname@example.org>
To: Zsh Users <email@example.com>
Subject: Zsh history search
Date: Sun, 20 Jun 2021 12:38:19 -0600 [thread overview]
Message-ID: <29EBD87B-2AE7-4585-9686-B41C27183417@covisp.net> (raw)
Is there a way in zsh to search the history for two terms, or to do a search for tear one and then search within those results for term 2?
For example, I use ffmpeg a lot, and sometimes I use it within a for loop, so I wold like to be able to search for
And then within all the history that shows up for all the many for commands, search for those that also contain ffmpeg. Searching 'for' and then parroting takes many many keypresses sometimes.
If it matters, and I expect it does, I have 'history' in plugins in my zshrc
reply other threads:[~2021-06-20 18:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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:
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).