Skip to content

Instantly share code, notes, and snippets.

@tara-gibbs
Last active August 26, 2018 13:27
Show Gist options
  • Save tara-gibbs/cf91bc86c580f244de0ae9f5978edaac to your computer and use it in GitHub Desktop.
Save tara-gibbs/cf91bc86c580f244de0ae9f5978edaac to your computer and use it in GitHub Desktop.
Handy OS X notification util to alert you with notification and speech that a long running process has completed.
#!/bin/bash
/usr/bin/osascript -e "display notification \"$*\" with title \"Hey!\""
/usr/bin/say -v Alex "Hey! $*"
# Setup: Add this to your /usr/local/bin in a file called hey. chmod +x it to make it an executable.
# Usage: sleep 2 && hey wake up!
@jonasbn
Copy link

jonasbn commented May 26, 2016

Love it! 👍

@jonasbn
Copy link

jonasbn commented Aug 26, 2018

Hi Tara, just wanted to let you know I mentioned your Gist in a blog post.

Thanks again for sharing,

jonasbn

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