Add Notification Center snippet

This commit is contained in:
Marcel Bischoff 2015-09-23 22:18:00 +02:00
parent e429171786
commit cae4f4a81b

View File

@ -181,6 +181,12 @@ cat whatever.txt | pbcopy
pbpaste > whatever.txt pbpaste > whatever.txt
``` ```
### Disable/enable Notification Center
```bash
launchctl unload -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist && killall -9 NotificationCenter
launchctl load -w /System/Library/LaunchAgents/com.apple.notificationcenterui.plist
```
### Eject all mountable volumes ### Eject all mountable volumes
```bash ```bash
osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)' osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)'