X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/blobdiff_plain/71ccf7cbe021ab4cbd096d99f1ddac35fe88b005..71301fb1786265755a1d03bd4cb1b9eddd8a2b23:/bin/moa?ds=sidebyside diff --git a/bin/moa b/bin/moa index ea4ea99..dbed63b 100755 --- 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") -if [ !x"${EDITOR}" ]; then +if [ -z ${EDITOR} ]; then + echo "EDITOR unset, defaulting to Nano" export EDITOR=nano fi $EDITOR $files