Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: history puzzle
- X-seq: zsh-users 30000
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: history puzzle
- Date: Tue, 4 Jun 2024 12:49:55 -0700
- Archived-at: <https://zsh.org/users/30000>
- In-reply-to: <CAA=-s3y-O9A7sahUbKPfjOef8s71kbz8QT8PVPHLUKUUWAFixg@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <32c690d4-fe7f-4d89-ac99-829fa64cca15@eastlink.ca> <CAA=-s3y-O9A7sahUbKPfjOef8s71kbz8QT8PVPHLUKUUWAFixg@mail.gmail.com>
On 2024-06-04 11:12, Mark J. Reed wrote:
What's "history -m"? Doesn't that just look for items in the history
containing "-m"?
The Devil! Had that in my function for years, thought it meant 'pattern
following'. Nuts, it works:
5 /aWorking/Zsh/Source/Wk 1 % history -rn "grep*" 1
fc: event not found: grep*
5 /aWorking/Zsh/Source/Wk 1 % history -rnm "grep*" 1
grep c52f */idProduct
grep c52f
grep c349 */idProduct
...
... but I can't find it in the doc :( A few examples would be so helpful.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author