dot_testing/boxes/phone/out-of-tree/shortcuts/make-habit.sh

10 lines
176 B
Bash
Raw Permalink Normal View History

register_habits=$(ls ~/pdbs/ |
grep '\.habit$' |
fzy)
if [ -z "$register_habits" ]; then
echo "you didn't choose one!"
else
date "+%m/%d/%Y" >> ~/pdbs/$register_habits
fi