]> us-delaporte.pagekite.me Git - minion.git/blobdiff - bin/mo
Fixup formatting, examples
[minion.git] / bin / mo
diff --git a/bin/mo b/bin/mo
index 2ebc8db48afd8ad5cd39025fa780b3af6bdd0ff8..568dd3a7c0db1275d80f388412bc682f237a44f1 100755 (executable)
--- 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