From 71fea3036e7560617e9bc723e172c08b3be8cb2c Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Fri, 23 Jun 2023 13:06:33 +0100 Subject: [PATCH] feat(create-daily): automatically open the new ...file in Vim --- justfile | 2 +- tools/scripts/create-daily.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 7c6615499..190143021 100644 --- a/justfile +++ b/justfile @@ -8,7 +8,7 @@ start: create-daily date title: #!/usr/bin/env bash - ./tools/scripts/create-daily.sh {{ date }} {{ title }} + vim $(./tools/scripts/create-daily.sh {{ date }} {{ title }}) deploy sha: rm -fr _deploy diff --git a/tools/scripts/create-daily.sh b/tools/scripts/create-daily.sh index 1fb0aab40..b173f86ad 100755 --- a/tools/scripts/create-daily.sh +++ b/tools/scripts/create-daily.sh @@ -31,7 +31,7 @@ sed -i "s#{{ permalink }}#archive/${year}/${month}/${day}/${slug}#" "${filepath} # Create a commit with the appropriate date in the message git add "${filepath}" -git commit -m "daily-email: add ${date} +git commit --quiet -m "daily-email: add ${date} ${title}"