dotfiles/bin/notetaker

14 lines
290 B
Plaintext
Raw Normal View History

2022-10-21 06:15:28 -04:00
#!/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