Skip to content

Instantly share code, notes, and snippets.

@ryanmoon
Forked from NickTomlin/instructions.md
Created June 22, 2016 06:05
Show Gist options
  • Save ryanmoon/e124fe3b3b2b88e91fb7cd86c7efd410 to your computer and use it in GitHub Desktop.
Save ryanmoon/e124fe3b3b2b88e91fb7cd86c7efd410 to your computer and use it in GitHub Desktop.
iTerm 2 "done" notifications

Add a trigger in Iterm2>Prefernces>Advanced>Triggers

(Those who have paid for Growl can simply use the growl action)

regex: #done#
action: run a command
arguments: /usr/local/bin/notify "Done" (ensure that you've copied the script to that location and made it executable)
#!/bin/bash
# copy this to /usr/local/bin and `chmod +x` it
# stolen from http://apple.stackexchange.com/a/115373
/usr/bin/osascript -e "display notification \"$*\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment