feat: wbp now works as it is intended

This commit is contained in:
Vitor Gonçalves 2023-06-26 04:22:01 -03:00
parent 6e7059129b
commit 8eadbb45b4
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
1 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,9 @@ wbp() {
read -rp "What is your title? " title
path="$blogdir/content/$(date '+%Y-%m-%d')-$title.md"
path="$blogdir/content/$(date '+%Y-%m-%d')-${title,,}.md"
path=${path// /-}
"$EDITOR" "$path"
clear; printf "Your blogpost is saved at $path.\n"
printf "Your blogpost is saved at %s\n" "$path"
}