{
"$type": "site.standard.document",
"description": "If you haven't seen it, terminal-notifier is a wrapper around Mac OS X Notification Center written by @alloy and now maintained by @julienXX . You use",
"path": "/using-terminal-notifier-to-improve-shell-workflow/",
"publishedAt": "2015-07-13T18:00:00.000Z",
"site": "at://did:plc:bryys25pc2fnagnyxqgsglhd/site.standard.publication/3mn26bjkkmh23",
"tags": [
"macOS",
"Tools"
],
"textContent": "If you haven't seen it, terminal-notifier is a wrapper around Mac OS X Notification Center written by @alloy and now maintained by @julienXX. You use it to show a message in Notification Center. I use the shell very frequently, and sometimes I run a command, leave it running and move on to do something else before coming back to check the results. terminal-notifier helps with this process since I don't have to manually check several times. For e.g., I build my blog using blogofile, so I can do something like:\n\nblogofile build; terminal-notifier -message 'Blog build done'\n\nI'll usually want to relaunch the blog test server after building, so I do:\n\nblogofile build; terminal-notifier -message 'Blog build done'; blogofile serve\n\nOnce I see Blog build done appear, I can go to Safari and reload the page I'm working on.\n\nterminal-notifier also supports running opening a URL (with -open) or running a command (with -execute) when you click on the notification, like this:\n\nblogofile build; terminal-notifier -message \"ok\" -open http://localhost:8080; blogofile serve\n\nI use terminal-notifier often enough for such notifications that I have a wrapper script called ok around it (I also use it to automatically copy macOS screenshot paths for Claude Code):\n\n#!/bin/bash\nterminal-notifier -message \"ok\" -open \"$1\"\n\nSo I can just run:\n\nblogofile build; ok http://localhost:8080; blogofile serve",
"title": "Using terminal-notifier to Improve Shell Workflow"
}