kblg/new.sh
2021-08-08 03:59:47 +01:00

14 lines
183 B
Bash
Executable file

#!/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
python build.py
./sync.sh