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

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"