Mac OX Terminal notifier use

Source: Internet
Author: User

Originally wanted to find a notifier used to hint terminal state of the software, except growl , there seems to be no good plan, until the occasional see terminal-notifier .

Terminal Notifier

> Terminal-notifier is a command-line tool to send Mac OS X User notifications, which be available in Mac OS X 10.8 an D higher.

Terminal Notifier is a command-line tool used when Mac OS x user reminders. Who let Growl it be charged, has not been tried.

Download Terminal Notifier

Terminal Notifier

Https://github.com/alloy/terminal-notifier/releases

If it's used Ruby , you can install it.

Gem Install Terminal-notifier

It rvm Homebrew would be a better solution than using gems like this, need, and so on.

Brew Install Terminal-notifier
Mac OS Notifier

Terminal notifier Usage

$ terminal-notifier-[message|group|list] [value|id|id] [options]

The official gave several examples

$ Echo ' Piped Message data! ' | Terminal-notifier-sound default$ terminal-notifier-title '?? '-message ' Check your Apple stock! '-open ' http://finance.y AHOO.COM/Q?S=AAPL ' $ Terminal-notifier-group ' address-book-sync '-title ' Address Book sync '-subtitle ' finished '- Message ' Imported contacts. '-activate ' Com.apple.AddressBook '

As for '?? ' this magical symbol is dedicated to Mac OS and may not be visible to others.

So there is such a configuration of their own.

Terminal-notifier-sound default-title '? '-message ' Happy hacking!! '

As for the origin of this apple. It is said that you can use the shortcut key Alt + Shift + K , as for Happy Hacking this writing is from emacs ,

?

Terminal Notifier Replacement Growl

Modify.bash_profile

function growl () {terminal-notifier-activate com.googlecode.iterm2-title '? '-subtitle ' A message from your shell: '-M Essage "[Email protected]"}

The following is for voice alerts

function Groooowl () {terminal-notifier-activate com.googlecode.iterm2-title '? '-subtitle ' A message from your shell: " -message "[email protected]" say "[Email protected]"}


Mac OX Terminal notifier use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.