Skip to content

Instantly share code, notes, and snippets.

@ecklf
Last active May 15, 2025 09:12
Show Gist options
  • Save ecklf/68a6c43c1443b61e0c3cdeb571fe5f8c to your computer and use it in GitHub Desktop.
Save ecklf/68a6c43c1443b61e0c3cdeb571fe5f8c to your computer and use it in GitHub Desktop.
Exclude Folders from Spotlight indexing
# Print Exclusions to verify
sudo /usr/libexec/PlistBuddy -c "Print :Exclusions" /System/Volumes/Data/.Spotlight-V100/VolumeConfiguration.plist
# Patch Exclusions - System reboot may be needed so it shows up in Settings
sudo /usr/libexec/PlistBuddy -c "Add :Exclusions: string /Users/ecklf/OrbStack" /System/Volumes/Data/.Spotlight-V100/VolumeConfiguration.plist
# Patching Permissions may be needed
sudo chown -R $USER:$GROUP /.Spotlight-V100/ sudo chmod -R 777 /.Spotlight-V100/
# Restart launchd service
sudo launchctl stop com.apple.metadata.mds && sudo launchctl start com.apple.metadata.mds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment