Skip to content

Instantly share code, notes, and snippets.



Created Apr 10, 2020
What would you like to do?
macOS bash function to trigger an alert when a process completes
cmd=$@ # Somehow interpolate $@ directly doesn't work.
$@ && tput bel && osascript -e "display notification \"Completed: $cmd\" with title \"╚(•⌂•)╝ Watch Alert\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.