Skip to content

Instantly share code, notes, and snippets.

@antonydb
Created April 4, 2019 12:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonydb/66d57e789de0d1e234f0276f7117e279 to your computer and use it in GitHub Desktop.
Save antonydb/66d57e789de0d1e234f0276f7117e279 to your computer and use it in GitHub Desktop.
Prevent spotlight indexing node_modules
find . -type d -name "node_modules" -exec touch "{}/.metadata_never_index" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment