This commit is contained in:
an 2017-11-05 17:34:18 +01:00
parent 5e34e1bbbd
commit e236c2c67b
5 changed files with 281 additions and 7 deletions

23
bin/rmsh Executable file
View file

@ -0,0 +1,23 @@
#!/bin/bash
#
# rmsh - the remark shell
#
# A tool for creating and handling remark.js based presentations
RMSH_DIR=~/opt/rmsh
BROWSER=firefox
case $1 in
"create")
mkdir $2
cd $2
cp $RMSH_DIR/share/html/presentation.html .
cp $RMSH_DIR/share/js/remark.min.js .
sass $RMSH_DIR/share/scss/$3.scss style.css
touch presentation.md
;;
"view")
$BROWSER presentation.html
;;
esac