From 1b46195e386f2b00cbb94bf4aa1d17ea22541ca7 Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 31 Jul 2026 11:58:28 -0500 Subject: [PATCH] Add shortcut for making the daily file print-friendly --- bin/daily-print | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/daily-print diff --git a/bin/daily-print b/bin/daily-print new file mode 100755 index 0000000..b23439b --- /dev/null +++ b/bin/daily-print @@ -0,0 +1,10 @@ +#!/bin/bash +# daily-print - get this month's daily file ready to print +# Opends files in your $BROWSER or assumes firefox +year=`date +%Y` +topic='daily' +mkdir -p "$HOME/Journal/$year" +fname=$(printf "$HOME/Journal/$year/%02d-$topic.md" $(date +%m)) + +mdtohtml $fname $fname.html +$BROWSER $fname.html & -- 2.47.3