]>
us-delaporte.pagekite.me Git - minion.git/blob - bin/mp
3 # Like `ml / minion list`, but gets the markdown file ready to print
4 # Will act on a maximum of four files.
5 # Creates .md.html files.
6 # Opends files in your $BROWSER or assumes firefox
8 files
=$(find $HOME/Journal/$year -type f -iname "*$1*\.md")
10 if [ -z ${BROWSER} ]; then
11 echo "BROWSER unset, defaulting to Firefox"
12 export BROWSER
=firefox
16 for file in $files; do
18 mdtohtml
$file $file.html
20 counter
=$((counter + 1))
21 if [ $counter -gt 4 ]; then
22 echo "Aborting after 4 files."
23 echo "The following files would have been processed..."