#!/bin/zsh # A script to clear the macOS Bluetooth cache to get the latest BLE service changes. sudo pkill bluetoothd sudo rm /Library/Preferences/com.apple.Bluetooth.plist &> /dev/null rm ~/Library/Preferences/ByHost/com.apple.Bluetooth.*.plist &> /dev/null sudo pkill bluetoothd