14 lines
290 B
Plaintext
14 lines
290 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
noteFileName="$HOME/notes/note-$(date +%Y-%m-%d).md"
|
||
|
|
||
|
if [ ! -f $noteFileName ];then
|
||
|
echo "Notes for $(date +%Y-%m-%d)" > $noteFileName
|
||
|
fi
|
||
|
|
||
|
nvim -c "norm Go" \
|
||
|
-c "norm Go## $(date +'%I:%m %p')" \
|
||
|
-c "norm G2o" \
|
||
|
-c "norm zz" \
|
||
|
-c "startinsert" $noteFileName
|