diff options
author | davidovski <david@sendula.com> | 2021-08-26 04:15:22 +0100 |
---|---|---|
committer | davidovski <david@sendula.com> | 2021-08-26 04:15:22 +0100 |
commit | daaf7d4350bafc71f25ecde6d03a24b59ed49c50 (patch) | |
tree | d5fb9fe514eb04277eeb25bc000c311fef156bc4 /new.sh |
initial commit
Diffstat (limited to 'new.sh')
-rwxr-xr-x | new.sh | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -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 |