dotfiles/home/.local/bin/scripts/cli/mknote

14 lines
271 B
Plaintext
Raw Normal View History

2022-11-19 21:16:05 +00:00
#!/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"