]> us-delaporte.pagekite.me Git - minion.git/blobdiff - bin/mo
Update interpreter for MacOS functionality - EdTheDev/minion#1 (#2)
[minion.git] / bin / mo
diff --git a/bin/mo b/bin/mo
index 7f4d04602418f87e44feacca25bfc6e6c53b409f..33f25d46b5ee32ac0288348feecd5727f9637d4f 100755 (executable)
--- 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