X-Git-Url: https://us-delaporte.pagekite.me/gitweb/minion.git/blobdiff_plain/7d1970756fb77204de89d96fdeaf6131ba7676e7..71ccf7cbe021ab4cbd096d99f1ddac35fe88b005:/bin/mo?ds=inline 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