mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 10:39:41 +00:00
14 lines
271 B
Plaintext
14 lines
271 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
file="$HOME/Personal/Notes/note-$(date +%Y-%m-%d).md"
|
||
|
|
||
|
if [ ! -f "$file" ]; then
|
||
|
echo "# Notes for $(date +%Y-%m-%d)" > "$file"
|
||
|
fi
|
||
|
|
||
|
lvim -c "norm Go" \
|
||
|
-c "norm Go## $(date +%H:%M)" \
|
||
|
-c "norm G2o" \
|
||
|
-c "norm zz" \
|
||
|
-c "startinsert" "$file"
|