]> apps.delaporte.us Git - minion.git/blobdiff - bin/moa
Add docstrings
[minion.git] / bin / moa
diff --git a/bin/moa b/bin/moa
index ea4ea99f46be531e0a9d923ef5feb3948a3941c3..38fa4ce75ef2c86e576441ea52ce7506140b99f0 100755 (executable)
--- a/bin/moa
+++ b/bin/moa
@@ -1,6 +1,9 @@
 #!/usr/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