Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Zsh history search
- X-seq: zsh-users 26780
- From: Lewis Butler <lbutler@xxxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Zsh history search
- Date: Sun, 20 Jun 2021 12:38:19 -0600
- Archived-at: <https://zsh.org/users/26780>
- List-id: <zsh-users.zsh.org>
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
"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
--
ɹןʇnqן
<mailto:lbutler@xxxxxxxxxx>
tel:+1.303.219.0564
Messages sorted by:
Reverse Date,
Date,
Thread,
Author