X-Git-Url: https://apps.delaporte.us/gitweb/minion.git/blobdiff_plain/3cb071d4349ce044d5e2d2a9207b25f1c419ab37..71ccf7cbe021ab4cbd096d99f1ddac35fe88b005:/bin/mo?ds=sidebyside diff --git a/bin/mo b/bin/mo index 2ebc8db..7f4d046 100755 --- a/bin/mo +++ b/bin/mo @@ -1,3 +1,7 @@ -#!/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 [ !x"${EDITOR}" ]; then + export EDITOR=nano +fi +$EDITOR $files