From: Edward Date: Thu, 11 Jun 2026 13:42:04 +0000 (-0500) Subject: Add daily file helper X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/commitdiff_plain/c2e085d41f1688addbb40bcab2ac9106bd5810e1?hp=97a73fbd7911229147e1c5f19bc9dbd1734ae67d Add daily file helper --- diff --git a/bin/daily b/bin/daily new file mode 100755 index 0000000..2df8a9c --- /dev/null +++ b/bin/daily @@ -0,0 +1,12 @@ +#!/usr/bin/bash +year=`date +%Y` +topic='daily' +mkdir -p "$HOME/Journal/$year" +fname=$(printf "$HOME/Journal/$year/%02d-$topic.md" $(date +%m)) + +if [ -z ${EDITOR} ]; then + echo "EDITOR unset, defaulting to Nano" + export EDITOR=nano +fi + +$EDITOR $fname