X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/blobdiff_plain/71ccf7cbe021ab4cbd096d99f1ddac35fe88b005..71301fb1786265755a1d03bd4cb1b9eddd8a2b23:/bin/mo diff --git a/bin/mo b/bin/mo index 7f4d046..33f25d4 100755 --- a/bin/mo +++ b/bin/mo @@ -1,7 +1,10 @@ -#!/usr/bin/bash +#!/bin/bash +# mo - minion open +# Like `ml / minion list`, but opens all matches in your $EDITOR year=`date +%Y` files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md") -if [ !x"${EDITOR}" ]; then +if [ -z ${EDITOR} ]; then + echo "EDITOR unset, defaulting to Nano" export EDITOR=nano fi $EDITOR $files