From daaf7d4350bafc71f25ecde6d03a24b59ed49c50 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 26 Aug 2021 04:15:22 +0100 Subject: initial commit --- new.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 new.sh (limited to 'new.sh') diff --git a/new.sh b/new.sh new file mode 100755 index 0000000..9fce8a3 --- /dev/null +++ b/new.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +EDITOR=nvim +TEMPFILE=/tmp/blog_entry.md + +$EDITOR $TEMPFILE + +NAME=src/$(head -1 $TEMPFILE | cut -d" " -f2-).md + +cp $TEMPFILE "$NAME" +rm $TEMPFILE + +./sync.sh -- cgit v1.2.1