Skip to content

Instantly share code, notes, and snippets.

@goromlagche
Last active April 10, 2021 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goromlagche/8fd7af1713c07d30cd65aa9da5b42581 to your computer and use it in GitHub Desktop.
Save goromlagche/8fd7af1713c07d30cd65aa9da5b42581 to your computer and use it in GitHub Desktop.
reminder script for osx
# use it with at command
# e.g. `reminder "make tea" | at now + 30 minutes`
# Also learn how to make atrun work in osx
# https://unix.stackexchange.com/questions/478823/making-at-work-on-macos/478840#478840
function reminder(){
echo "reattach-to-user-namespace say $1; reattach-to-user-namespace osascript -e 'tell app \"System Events\" to display dialog \"${1}\" with title \"Reminder ⏰\"'"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment