12 lines
184 B
Bash
12 lines
184 B
Bash
|
set -x
|
||
|
|
||
|
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
|