X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/blobdiff_plain/71ccf7cbe021ab4cbd096d99f1ddac35fe88b005..6d643f5173e34d34bf8510b43aa51b7591646670:/bin/moa diff --git a/bin/moa b/bin/moa index ea4ea99..0978a65 100755 --- a/bin/moa +++ b/bin/moa @@ -1,6 +1,7 @@ #!/usr/bin/bash 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