sharkdp / fd

A simple, fast and user-friendly alternative to 'find'
Apache License 2.0
34.3k stars 816 forks source link

Limit depth for certain directory / folder #1578

Closed coleaderme closed 5 months ago

coleaderme commented 5 months ago

What version of fd are you using? [paste the output of fd --version here] fd 10.1.0

Q) How to limit depth for .config/ folder? fd should be able show files within .config/ but NOT folders.

example:
should show .txt, .conf, .ini, etc.. but NOT transcend into folder/anotherFolder/

coleaderme commented 5 months ago

Solved!

edit: ~/.config/fd/ignore config file added following lines: !.config/ .config/*/

now works as intended.