blob: 880838b81e3e14458f0a534803c998d709c0a636 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/sh
n=$(printf '%s\n' [0-9]* | sort -nr | head -1)
if [ -z "$n" ]; then
n=1
else
let n=n+1
fi
mkdir $n
p=$n/index.md
echo "Title: " >> $p
echo "Author: $(git config get user.name)" >> $p
echo "Created: $(date -R)" >> $p
echo "State: open" >> $p
echo "\$EDITOR $n/index.md"
|