]> apps.delaporte.us Git - minion.git/commitdiff
Add a someday file
authorEdward <delaport@illinois.edu>
Thu, 13 Aug 2026 21:04:15 +0000 (16:04 -0500)
committerEdward <delaport@illinois.edu>
Thu, 13 Aug 2026 21:04:15 +0000 (16:04 -0500)
bin/someday [new file with mode: 0755]

diff --git a/bin/someday b/bin/someday
new file mode 100755 (executable)
index 0000000..6772d1d
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/bash
+# someday - Opens ~/Journal/YYYY/someday.md
+# Used for tracking day-to-day updates to efforts
+# One file per month
+year=`date +%Y`
+topic='someday'
+mkdir -p "$HOME/Journal/$year"
+fname="$HOME/Journal/$year/$year-$topic.md"
+
+if [ -z ${EDITOR} ]; then
+       echo "EDITOR unset, defaulting to Nano"
+       export EDITOR=nano
+fi
+
+$EDITOR $fname