Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How do I (*|*/*) ?
On Sun 12 Apr 2026, at 17:55, Philippe Altherr wrote:
> You can use ** instead of (*|*/*|*/*/*) but it won't limit itself to a
> maximum of 3 directories (see Recursive Globbing for more details). If
> the limiting is crucial, you can do that afterwards by filtering the
> result with ${name:#pattern}.
i was going to suggest this:
*/**/.DS_Store~*/*/*/*/*(OL[1,5])
as you said it will descend as far as it can, which will make it slower
than necessary, but it's probably fine unless it's an extremely deep
file structure or it's on a slow fs like a network share
if there's a better way i can't think of it atm
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author