mirror of
https://git.davidovski.xyz/davidovski.git
synced 2024-08-15 00:43:29 +00:00
13 lines
178 B
Bash
Executable file
13 lines
178 B
Bash
Executable file
#!/bin/sh
|
|
|
|
EDITOR=nvim
|
|
TEMPFILE=/tmp/blog_entry.md
|
|
|
|
$EDITOR $TEMPFILE
|
|
|
|
NAME=entries/$(head -1 $TEMPFILE | cut -d" " -f2-).html
|
|
|
|
cp $TEMPFILE "$NAME"
|
|
rm $TEMPFILE
|
|
|
|
chmod +x $NAME
|