rwxrob-dot/scripts/back
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

10 lines
228 B
Bash
Executable File

#!/usr/bin/env bash
what="$*"
if [[ -z "${what}" ]]; then
what="in a bit"
elif [[ $what =~ ^([0-9]+) ]]; then
what="at $(date -d "${BASH_REMATCH[1]} minutes" +%-I:%M)"
fi
echo "$what" > ~/.break
exec bannerfish "back $what"