Skip to content

Instantly share code, notes, and snippets.

@NickTomlin
Last active October 18, 2024 11:52
Show Gist options
  • Save NickTomlin/db65670b7f0985d77165 to your computer and use it in GitHub Desktop.
Save NickTomlin/db65670b7f0985d77165 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