Skip to content

Instantly share code, notes, and snippets.

@LucaTNT
LucaTNT / cleanNotifications.sh
Last active August 29, 2015 14:21 — forked from giu1io/cleanNotifications.sh
Cleans OS X's Notification Center
#!/bin/bash
# Author: @giu1io
# Thanks @LucaTNT for making the script work on < 10.10
MAJOR_OSX_VERSION=$(sw_vers -productVersion | awk -F '.' '{print $2}')
if [[ $MAJOR_OSX_VERSION -ge 10 ]]
then
DB_PATH=`getconf DARWIN_USER_DIR`com.apple.notificationcenter/db/db
else
DB_PATH="$HOME/Library/Application Support/NotificationCenter/"