init
This commit is contained in:
parent
5e34e1bbbd
commit
e236c2c67b
5 changed files with 281 additions and 7 deletions
23
bin/rmsh
Executable file
23
bin/rmsh
Executable 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
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue