snippets/presinit

23 lines
240 B
Plaintext
Raw Normal View History

# init a presentation .md
if [ -z $1 ]; then
echo "needs name"
exit 1
fi
read -p "Title? " title
read -p "Author? " author
echo "\
---
title: $title
author: $author
colortheme: magpie
---
# First slide
Foobar
" > "$1"
$EDITOR "$1"