Adding alias to restart bluetooth daemon

This commit is contained in:
Augusto Souza 2017-09-06 09:59:51 -03:00
commit 4e2cb5049d
2 changed files with 3 additions and 0 deletions

View file

@ -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. |

View file

@ -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"