cli-scripts/memo
2024-02-29 20:44:48 +00:00

14 lines
229 B
Bash
Executable File

#!/usr/bin/env zsh
if [[ -z "$1" ]]; then
note="text_memo"
else
note="${1// /_}"
fi
tmp=$(date +"memo-%Y.%m.%d-%k.%M.%S")
timestamp="${tmp// /}"
filename="$HOME/Documents/memos/${timestamp}-${note}.md"
tilde $filename