Last active
August 29, 2015 14:18
-
-
Save sideshowcoder/54138d4affcb17c43d69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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