Files
scripts/shell/tmp_note.sh
2025-09-18 11:35:56 +02:00

13 lines
397 B
Bash
Executable File

#!/usr/bin/env zsh
# This is for nixos specific
# simple script to create and use a temporary note file
# Create new temporary file if not already exists for this date
if [ ! -f /tmp/notes.md ]; then
echo -e "# $(date)\n\n" >/tmp/notes.md
fi
# Instantly enter the insert mode at the bottom for less friction
nvim -c "e /tmp/notes.md" -c "normal G" -c "normal k" -c "normal o" -c "startinsert"