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