Use iTerm2 with OS X Notification Center

🕒  Posted

A user in the comments of this post 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 "$@"
}

If you enjoyed this content, please let me know on Twitter! I want to hear from everyone that comes across my posts 😄