Skip to content
David-Apps edited this page Apr 30, 2022 · 3 revisions

This simple function prints a message after a specified time period. If the alert does not sound and you want it to, change echo to echo -e.

# Timer
# usage: <timer <period>
function+timer {
db0
!sleep ~0 && echo $(echo ~0 | sed 's/\b[0-9]\+\b/&s/g') "timer done\a" &
}