Skip to content

Instantly share code, notes, and snippets.

@hughsaunders
Created September 5, 2013 08:46
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save hughsaunders/6447588 to your computer and use it in GitHub Desktop.
Save hughsaunders/6447588 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Disable BT on local machine and enable it on remote machine, so KB/Mouse reconnect to remote machine.
#ensure local bluetooth is off
blueutil off
#enable imac bluetooth
ssh hms@imac27.local '/usr/local/bin/blueutil on'
#!/usr/bin/env bash
# Disable BT on remote machine and enable it on local machine, so KB/Mouse reconnect to local machine.
#ensure local bluetooth is off
blueutil off
#disable imac bluetooth
ssh user@imac.local '/usr/local/bin/blueutil off'
#enable local bluetooth
blueutil on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment