#!/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