X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/blobdiff_plain/71ccf7cbe021ab4cbd096d99f1ddac35fe88b005..b24921805947b6d54f87cdae1dbcc07fea11557b:/bin/mo diff --git a/bin/mo b/bin/mo index 7f4d046..568dd3a 100755 --- a/bin/mo +++ b/bin/mo @@ -1,7 +1,8 @@ #!/usr/bin/bash year=`date +%Y` files=$(find $HOME/Journal/$year -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