14 lines
290 B
Bash
Executable File
14 lines
290 B
Bash
Executable File
#!/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
|