Skip to content

Instantly share code, notes, and snippets.

View blvz's full-sized avatar

Rafael Belvederese blvz

View GitHub Profile
@blvz
blvz / bluetooth-restart.sh
Last active July 20, 2021 09:50 — forked from thiagoghisi/bluetooth-restart.sh
Script for Mac OSX to Restart Bluetooth service & Reconnect all recently paired devices
#!/usr/bin/env zsh
max_tries=3
devices=()
devices_ids=()
echo 'restarting bluetooth service.'
blueutil -p 0 && sleep 1 && blueutil -p 1
echo 'waiting bluetooth service to be restored.'