Last active
November 21, 2018 12:53
-
-
Save bitnot/6adccc49e95dee6fb98a4f18a9d4b0e6 to your computer and use it in GitHub Desktop.
Blacklist dev dirs from indexing with Spotlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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