Ask HN: Setting to ignore /node_modules with find and grep Searching files in terminal and node_modules is making my life extremely uncomfortable. Project directory looks like so:
I find myself using `find . | xargs grep "text string"` to search the project directory.I want to ignore everything in node_modules all of the time. I'm familiar with --prune and ignoring, etc.. but I want something like an alias in my .profile that ALWAYS ignores the contents of node_modules. I've looked around, but I just don't know if I'm asking the question correctly. Anyone have any solutions? |