Use iTerm2 with OS X Notification Center

🗓 Posted

By

A user in the comments of a postI read recently mentioned a great way to use Notification Center for terminal notifications; very cool.

I also use something like this: Once you installed terminal-notifier, you can also bypass growl completely and use the notification center, having a function like

function growl() {
  terminal-notifier -activate com.googlecode.iterm2 -title "Pssssst !!" -subtitle "A message from your shell:" -message "$@"
}

Because popup notifications are numerous those days, I also added an audio notification in my growl function :

function groooowl() {
  terminal-notifier -activate com.googlecode.iterm2 -title "Pssssst !!" -subtitle "A message from your shell:" -message "$@"
  say "$@"
}

…