Skip to content

Instantly share code, notes, and snippets.

@arthuralvim
Created June 13, 2019 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arthuralvim/5a88f2c8f6ab5721770147c8ca204afd to your computer and use it in GitHub Desktop.
Save arthuralvim/5a88f2c8f6ab5721770147c8ca204afd to your computer and use it in GitHub Desktop.
Script to restart Bluetooth on Mac OSX.
#!/bin/bash
# blueutil
if which blueutil &> /dev/null; then
echo "blueutil installed!"
else
echo "blueutil installing..."
brew install blueutil
echo "blueutil installed!"
fi
blueutil -p 0
echo 'Bluetooth off!'
blueutil -p 1
echo 'Bluetooth on!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment