terminal-notifier
Send macOS User Notifications. More information: https://github.com/julienXX/terminal-notifier.
-
Send a notification (only the message is required):
terminal-notifier -group {{tldr-info}} -title {{TLDR}} -message '{{TLDR rocks}}'
-
Display piped data with a sound:
echo '{{Piped Message Data!}}' | terminal-notifier -sound {{default}}
-
Open a URL when the notification is clicked:
terminal-notifier -message '{{Check your Apple stock!}}' -open '{{http://finance.yahoo.com/q?s=AAPL}}'
-
Open an app when the notification is clicked:
terminal-notifier -message '{{Imported 42 contacts.}}' -activate {{com.apple.AddressBook}}
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.