From 4e2cb5049d140fa80396266d52c9d1d97a83ca61 Mon Sep 17 00:00:00 2001 From: Augusto Souza Date: Wed, 6 Sep 2017 09:59:51 -0300 Subject: [PATCH] Adding alias to restart bluetooth daemon --- plugins/osx/README.md | 1 + plugins/osx/osx.plugin.zsh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/plugins/osx/README.md b/plugins/osx/README.md index b77daecc5..dbe81913b 100644 --- a/plugins/osx/README.md +++ b/plugins/osx/README.md @@ -31,3 +31,4 @@ Original author: [Sorin Ionescu](https://github.com/sorin-ionescu) | `hidefiles` | Hide the hidden files | | `itunes` | Control iTunes. User `itunes -h` for usage details | | `spotify` | Control Spotify and search by artist, album, track and etc.| +| `bt_restart` | Restart the bluetooth daemon. | diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh index e8488ebc9..642593d90 100644 --- a/plugins/osx/osx.plugin.zsh +++ b/plugins/osx/osx.plugin.zsh @@ -543,6 +543,8 @@ function spotify() { done } +# Bluetooth restart +alias bt_restart="sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport && sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport" # Show/hide hidden files in the Finder alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"