mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 05:42:09 +02:00
terminal-notifier: add page (#10399)
* terminal-notifier: add page * Apply suggestions --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
parent
1ca0dbbe05
commit
8ac3ec8e69
1 changed files with 20 additions and 0 deletions
20
pages/osx/terminal-notifier.md
Normal file
20
pages/osx/terminal-notifier.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue