mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
14 lines
358 B
Bash
14 lines
358 B
Bash
#!/bin/bash
|
|
|
|
if [[ $(task "$1" +grocery 2>&1) == "No matches." ]];
|
|
then
|
|
date_str=$(date +"_%Y%m%d_%H:%M:%S")
|
|
filename="$HOME/documents/warrior/fleeting/grocery${date_str}.md"
|
|
cp "$HOME/documents/warrior/templates/grocery.md" "${filename}"
|
|
task "$1" modify +grocery
|
|
task "$1" annotate "${filename}"
|
|
taskopen $1
|
|
else
|
|
taskopen $1
|
|
fi
|