cli-scripts/scripts/memo

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