Skip to content

Instantly share code, notes, and snippets.

@kontheocharis
Last active October 14, 2018 13:08
Show Gist options
  • Select an option

  • Save kontheocharis/55e78ff83c465f4ecdc8e66daf32495f to your computer and use it in GitHub Desktop.

Select an option

Save kontheocharis/55e78ff83c465f4ecdc8e66daf32495f to your computer and use it in GitHub Desktop.
Creates a new pandoc project based on preset (https://github.com/kontheocharis/pandoc-presets)
#!/bin/bash
# Usage: newpp [NAME OF PRESET] [NAME OF NEW PROJECT]
PRESET_DIR=$HOME/.pandoc-presets
mkdir "$2"
cp -rT $PRESET_DIR/"$1" "$2"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment