refactor: remove some prompts

This commit is contained in:
Ayo Ayco 2025-06-21 13:13:46 +02:00
parent 2277d0ad7d
commit dddaba13cb

View file

@ -1,7 +1,5 @@
#! /usr/bin/bash #! /usr/bin/bash
echo "NEW NOTE"
journal_dir="/home/ayo/notes/Journal" journal_dir="/home/ayo/notes/Journal"
file_name=$(date +'%m.%d.%Y').md file_name=$(date +'%m.%d.%Y').md
@ -13,7 +11,6 @@ if ! test -f "$full_path"; then
install -Dv /dev/null $full_path install -Dv /dev/null $full_path
# TODO: update to correct heading from old entries # TODO: update to correct heading from old entries
heading=$(date +'%m-%d-%Y') heading=$(date +'%m-%d-%Y')
echo writing $heading to "$full_path"
echo $heading > "$full_path" echo $heading > "$full_path"
fi fi
@ -21,4 +18,4 @@ fi
vim "$full_path" vim "$full_path"
# Report; TODO: write log # Report; TODO: write log
echo ">>> " $month_dir / $file_name echo ">>> " $full_path