mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-14 20:27:18 +00:00
14 lines
271 B
Bash
Executable file
14 lines
271 B
Bash
Executable file
#!/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"
|