davidovski/new.sh
2021-08-26 04:15:22 +01:00

13 lines
167 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
./sync.sh