Skip to content

Instantly share code, notes, and snippets.

@lucasltv
Created April 17, 2020 20:56
Show Gist options
  • Save lucasltv/211d56cf4ee7701f6fa2faa4bd619cff to your computer and use it in GitHub Desktop.
Save lucasltv/211d56cf4ee7701f6fa2faa4bd619cff to your computer and use it in GitHub Desktop.
Bash function to show MACOS notification
function alert() {
local notification_command="display notification \"$2\" with title \"$1\" subtitle \"$3\" sound name \"$4\""
osascript -e "$notification_command"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment