14 lines
229 B
Plaintext
14 lines
229 B
Plaintext
|
#!/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
|