Last active
May 15, 2025 09:12
-
-
Save ecklf/68a6c43c1443b61e0c3cdeb571fe5f8c to your computer and use it in GitHub Desktop.
Exclude Folders from Spotlight indexing
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
# 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