12 lines
212 B
Bash
Executable File
12 lines
212 B
Bash
Executable File
#!/bin/bash
|
|
|
|
year=$(date +%Y)
|
|
month=$(date +%m)
|
|
day=$(date +%d)
|
|
folder="$HOME/docs/daily/$year"
|
|
note="$folder/$month.$day.md"
|
|
mkdir -p $folder
|
|
[ ! -f "$note" ] && echo "# $year.$month.$day" > "$note"
|
|
|
|
nvim $note
|