Skip to content

Instantly share code, notes, and snippets.

@bitnot
Last active November 21, 2018 12:53
Show Gist options
  • Save bitnot/6adccc49e95dee6fb98a4f18a9d4b0e6 to your computer and use it in GitHub Desktop.
Save bitnot/6adccc49e95dee6fb98a4f18a9d4b0e6 to your computer and use it in GitHub Desktop.
Blacklist dev dirs from indexing with Spotlight
find ~/gits -type d \( -name "node_modules" -o -name "bower_modules" -o -name "target" -o -name ".git" -o -name ".idea" \) -exec touch "{}/.metadata_never_index" \;
# https://apple.stackexchange.com/questions/247019/prevent-spotlight-from-indexing-folders-with-a-certain-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment