Skip to content

Instantly share code, notes, and snippets.

@nicnilov
Created July 22, 2020 15:39
Show Gist options
  • Save nicnilov/2f3a7e28cc2e0e4c16fe8186a882f152 to your computer and use it in GitHub Desktop.
Save nicnilov/2f3a7e28cc2e0e4c16fe8186a882f152 to your computer and use it in GitHub Desktop.
noindex () {
mdutil -i off .
sudo rm -rf .{,_.}{fseventsd,Spotlight-V*,Trashes,DocumentRevisions-V*}
mkdir .fseventsd
touch .fseventsd/no_log .metadata_never_index .Trashes
echo "Done"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment