Skip to content

Instantly share code, notes, and snippets.

@slumos
Created March 7, 2016 21:14
Show Gist options
  • Save slumos/8b8bb8b446f591232aa3 to your computer and use it in GitHub Desktop.
Save slumos/8b8bb8b446f591232aa3 to your computer and use it in GitHub Desktop.
#! /usr/bin/env zsh
echo \\a
title=Ding
message="${*:-DONE}"
function is_available {
command -v $* >& /dev/null
}
if is_available terminal-notifier; then
terminal-notifier -title "${title}" -message "${message}" -sound Glass
elif is_available growlnotify; then
growlnotify -s -t "${title}" -m "${message}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment