X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/blobdiff_plain/71ccf7cbe021ab4cbd096d99f1ddac35fe88b005..adb613803d139be75d7ecb4d83910ad033358294:/bin/moa?ds=inline diff --git a/bin/moa b/bin/moa index ea4ea99..38fa4ce 100755 --- 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