We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09de78e commit 75ab5dfCopy full SHA for 75ab5df
scripts/new_draft.sh
@@ -1,5 +1,7 @@
1
#!/bin/bash
2
3
+set -e
4
+
5
# Creates a new draft with populated header
6
7
if [ -z $1 ] || [ -z $2 ]
@@ -13,7 +15,7 @@ FIRST_TAG=$2
13
15
14
16
mkdir -p org/_drafts
17
touch org/_drafts/$DRAFT
-cat <<FILE_CONTENTS >> org/_drafts/$DRAFT
18
+cat <<FILE_CONTENTS > org/_drafts/$DRAFT
19
#+OPTIONS: toc:nil num:nil
20
#+STARTUP: showall indent
21
#+STARTUP: hidestars
@@ -30,3 +32,5 @@ preview_image: ...
30
32
31
33
Once upon a time there was...
34
FILE_CONTENTS
35
36
+echo "Created new draft in org/_drafts/$DRAFT"
0 commit comments