X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/blobdiff_plain/97a73fbd7911229147e1c5f19bc9dbd1734ae67d..1853b9b4021c1b24683e6fbc60dd1c4ef502bf30:/bin/mp diff --git a/bin/mp b/bin/mp index dd6d9b5..160238e 100755 --- a/bin/mp +++ b/bin/mp @@ -1,4 +1,9 @@ -#!/usr/bin/bash +#!/bin/bash +# mp - minion print +# Like `ml / minion list`, but gets the markdown file ready to print +# Will act on a maximum of four files. +# Creates .md.html files. +# Opends files in your $BROWSER or assumes firefox year=`date +%Y` files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md") @@ -11,7 +16,7 @@ counter=0 for file in $files; do # echo $file mdtohtml $file $file.html - $BROWSER $file.html + $BROWSER $file.html & counter=$((counter + 1)) if [ $counter -gt 4 ]; then echo "Aborting after 4 files."