Last active
April 10, 2021 15:25
-
-
Save goromlagche/8fd7af1713c07d30cd65aa9da5b42581 to your computer and use it in GitHub Desktop.
reminder script for osx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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