From 8364169c2786195aebcac090d6cf1eba25cdbac0 Mon Sep 17 00:00:00 2001 From: Ain Date: Sat, 11 Nov 2017 23:09:03 +0000 Subject: [PATCH] Fix for non-vim users --- newpost.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newpost.sh b/newpost.sh index e77668f..a535ed8 100755 --- a/newpost.sh +++ b/newpost.sh @@ -28,7 +28,7 @@ function main { done postname="./site/posts/$date-${title// /-}.md" echo -e "---\ntitle: ${title}\nauthor: ${author}\ndescription: \n---" >> $postname - vim $postname + ${VISUAL:-vim} $postname } main