-#!/usr/bin/bash
+#!/bin/bash
+# moa - minion open any
+# Like `mla / minion list any`, but opens all matches in your $EDITOR
files=$(find $HOME/Journal -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