rwxrob-dot/scripts/back

10 lines
227 B
Plaintext
Raw Normal View History

2022-02-09 07:29:05 +00:00
#!/usr/bin/env bash
what="$*"
if [[ -z "${what}" ]]; then
what="in a bit"
elif [[ $what =~ ^([0-9]+) ]]; then
2022-02-15 04:36:21 +00:00
what="at $(date -d "${BASH_REMATCH[1]} minutes" +%H:%M)"
2022-02-09 07:29:05 +00:00
fi
echo "$what" > ~/.break
exec bannerfish "back $what"