]> us-delaporte.pagekite.me Git - minion.git/blobdiff - bin/moa
Update with borg template sync
[minion.git] / bin / moa
diff --git a/bin/moa b/bin/moa
index ea4ea99f46be531e0a9d923ef5feb3948a3941c3..dbed63b42b7485b56cccf3a394fcbb2a0728fa99 100755 (executable)
--- a/bin/moa
+++ b/bin/moa
@@ -1,6 +1,9 @@
-#!/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")
 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
        export EDITOR=nano
 fi
 $EDITOR $files