cli-scripts/scripts/memo

14 lines
229 B
Plaintext
Raw Permalink Normal View History

2024-02-29 20:44:48 +00:00
#!/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