Skip to content

Instantly share code, notes, and snippets.

@sideshowcoder
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save sideshowcoder/54138d4affcb17c43d69 to your computer and use it in GitHub Desktop.

Select an option

Save sideshowcoder/54138d4affcb17c43d69 to your computer and use it in GitHub Desktop.
#!/bin/bash
NOTIFY_FILE=~/.irssi/fnotify
# clear the file, at shutdown assuming we have showed all the notfications so
# far
trap "> $NOTIFY_FILE" SIGINT
# send notifications to the terminal-notifier
tail -f $NOTIFY_FILE | \
while read heading message; do
terminal-notifier -title "\"$heading\"" -message "\"$message\"" -activate com.apple.Terminal;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment