Skip to content

Instantly share code, notes, and snippets.

@hughsaunders
Created September 5, 2013 08:46
Show Gist options
  • 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 [email protected] '/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 [email protected] '/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