X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/blobdiff_plain/3cb071d4349ce044d5e2d2a9207b25f1c419ab37..df9721d4f2cd9883e2664499eac192b465b5fb33:/bin/mo diff --git a/bin/mo b/bin/mo index 2ebc8db..568dd3a 100755 --- a/bin/mo +++ b/bin/mo @@ -1,3 +1,8 @@ -#!/usr/bin/fish -set year (date +%Y) -vim $(find $HOME/Journal/$year -type f -iname "*$argv*\.md") +#!/usr/bin/bash +year=`date +%Y` +files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md") +if [ -z ${EDITOR} ]; then + echo "EDITOR unset, defaulting to Nano" + export EDITOR=nano +fi +$EDITOR $files