]> apps.delaporte.us Git - minion.git/blob - bin/mp
Update to use bash shell
[minion.git] / bin / mp
1 #!/usr/bin/fish
2 set year (date +%Y)
3 set files $(find $HOME/Journal/$year -type f -iname "*$argv*\.md")
4
5 if test (count $files) -lt 5;
6 for file in $files
7 mdtohtml $file > $file.html
8 firefox $file.html
9 end;
10 else
11 echo "More than 5 files found."
12 end
13
14