So I'm trying to find all the mercurial repositories in my home directory
$ find ~ -name ".hg" -or -name ".git"
This works fine, but it finds a lot in the ~/.local/share/Trash subdirectory
How do I make it ignore these? Obviously there's grep -v, but it would be better not to search Trash at all.
You can use the -prune option this way: