How to I use ag to search only in current folder (nonrecursive)?

4.3k views Asked by At

I love ag :: the_silver_searcher but I am wondering how can I perform a search non-recursively.

Sometimes I want to search only inside files from my home directory but without looking in subdirectories.

1

There are 1 answers

2
Charles Paulet On BEST ANSWER

Check the depth option from the manual :

--depth NUM : Search up to NUM directories deep, -1 for unlimited. Default is 25.