dotfiles/.config/fish/functions/tasktime.fish

10 lines
340 B
Fish
Raw Normal View History

function tasktime -a id time -d 'Set a time to check-in on task progress using pushover'
2020-08-15 23:20:08 +00:00
set half_time (math $time/2)
set desc (task _get $id.description)
2020-08-15 23:20:08 +00:00
task $id start
fish -c "send_push '\"Half-time: $desc\"' $half_time" >/dev/null & disown
fish -c "send_push '\"Timer over: $desc\"' $time" >/dev/null & disown
end