Skip to content

Instantly share code, notes, and snippets.

@bleshik
Created May 24, 2016 14:44
Show Gist options
  • Save bleshik/1abcb8eac7bf482750b778fbdf8f35b6 to your computer and use it in GitHub Desktop.
Save bleshik/1abcb8eac7bf482750b778fbdf8f35b6 to your computer and use it in GitHub Desktop.
#!/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