#!/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"