Skip to content

Instantly share code, notes, and snippets.

@AshCoolman
Last active February 20, 2018 11:47
Show Gist options
  • Save AshCoolman/a45eecb579a6c2b65c21512570cf1908 to your computer and use it in GitHub Desktop.
Save AshCoolman/a45eecb579a6c2b65c21512570cf1908 to your computer and use it in GitHub Desktop.
OSX notifications for 'kk.'
#!/usr/bin/env bash
notify "kk."
#!/usr/bin/osascript
on run argv
if length of argv = 1 then
display notification (item 1 of argv) with title "Notification"
else if length of argv > 1 then
display notification (item 1 of argv) with title (item 2 of argv)
else
return "<message> is required\nUsage: notify <message> [<title>]"
end if
end run
@AshCoolman
Copy link
Author

AshCoolman commented Feb 20, 2018

Used for long running processes:

yarn test; kk

To install cp both to /usr/local/bin

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