]> us-delaporte.pagekite.me Git - minion.git/blobdiff - bin/mo
Update to use bash shell
[minion.git] / bin / mo
diff --git a/bin/mo b/bin/mo
index 2ebc8db48afd8ad5cd39025fa780b3af6bdd0ff8..7f4d04602418f87e44feacca25bfc6e6c53b409f 100755 (executable)
--- 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