Created
May 24, 2016 14:44
-
-
Save bleshik/1abcb8eac7bf482750b778fbdf8f35b6 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
#!/bin/sh | |
if [ -z "$1" ] ; then | |
MESSAGE="Done, my Lord!" | |
else | |
MESSAGE="$1" | |
fi | |
if [ -z "$2" ] ; then | |
TITLE="Done" | |
else | |
TITLE="$2" | |
fi | |
reattach-to-user-namespace osascript -e "display notification \"$MESSAGE\" with title \"$TITLE\"" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment