#!/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/styles/$3/$3.scss style.css cp -r $RMSH_DIR/share/styles/$3/img . touch presentation.md ;; "view") $BROWSER presentation.html ;; esac