Skip to content

Instantly share code, notes, and snippets.

Last active May 17, 2018 15:21
What would you like to do?
Posts a message to the OS X notification center when a Jekyll build is finished. Requires TerminalNotifier, see or “gem install terminal-notifier”.
require 'terminal-notifier'
module Jekyll
class Site
alias jekyll_process process
def process
TerminalNotifier.notify('Jekyll rebuild finished.')
rescue LoadError
# nothing
Copy link

It does indeed! Fantastic! Thank you!

For folks discovering this on google, add this plugin to your project by saving it inside your _plugins folder.

Copy link

nimf commented Jan 23, 2016

Thank you!
I've updated this gist to report build errors also:

Copy link

Hmm placed this file in my _plugins/ directory but does not seem to be generating any notifications. I installed terminal-notifier via home-brew.

Copy link

Hey, anyone know how to get this to work with Jekyll V3.8.1 and terminal notifier 2.0.0? They appear to have stopped speaking to one another. I can manually trigger terminal notifier, so i suspect it's this plugin code that needs updating.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment