Created
March 7, 2016 21:14
-
-
Save slumos/8b8bb8b446f591232aa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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