Skip to content

Instantly share code, notes, and snippets.

@kurtroberts
Last active October 31, 2018 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kurtroberts/37f03690ef78b1eb144fae0b2bf333ac to your computer and use it in GitHub Desktop.
Save kurtroberts/37f03690ef78b1eb144fae0b2bf333ac to your computer and use it in GitHub Desktop.
Script Alerting Options
#/bin/bash
# Built in:
osascript <<EOF 2>/dev/null
display notification "test message" with title "title"
EOF
# yo- https://github.com/sheagcraig/yo
yo_scheduler -t "Title" -n "test message"
# terminal-notifier - `brew install terminal-notifier`
terminal-notifier -title "title" -message "message"
# alerter - https://github.com/vjeantet/alerter
# uniquely, this one is blocking, so your script can react to its exit code
alerter -title "title" -message "message"
# node-notify-cli - npm install -g node-notify-cli - *cross-platform*
echo "My Message" | notify -t "Hello"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment