From 24b2e4cc628642cd97caecf52965fed54546f810 Mon Sep 17 00:00:00 2001 From: Edward Delaporte Date: Wed, 3 Jun 2026 17:19:19 -0500 Subject: [PATCH 1/1] Update to use $EDITOR --- bin/mo | 3 ++- bin/moa | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 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 -- 2.47.3