]> us-delaporte.pagekite.me Git - minion.git/blob - bin/mo
Update interpreter for MacOS functionality - EdTheDev/minion#1 (#2)
[minion.git] / bin / mo
1 #!/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