Created
June 13, 2019 19:20
-
-
Save arthuralvim/5a88f2c8f6ab5721770147c8ca204afd to your computer and use it in GitHub Desktop.
Script to restart Bluetooth on Mac OSX.
This file contains 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
#!/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