]> us-delaporte.pagekite.me Git - minion.git/blob - bin/mo
70bd57145902f42337021020a82b4a1b7e6ec602
[minion.git] / bin / mo
1 #!/usr/bin/bash
2 # mo - minion open
3 # Like `ml / minion list`, but opens all matches in your $EDITOR
4 year=`date +%Y`
5 files=$(find $HOME/Journal/$year -type f -iname "*$1*\.md")
6 if [ -z ${EDITOR} ]; then
7 echo "EDITOR unset, defaulting to Nano"
8 export EDITOR=nano
9 fi
10 $EDITOR $files