From e1a299eafba5b6777c2f8234062fc67c8c8790f4 Mon Sep 17 00:00:00 2001 From: Mark Szymanski Date: Sat, 2 Jul 2011 21:44:56 -0500 Subject: [PATCH] Implement JEKYLL_EDITOR variable --- plugins/available/jekyll.plugins.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/available/jekyll.plugins.bash b/plugins/available/jekyll.plugins.bash index 8efdd11..eff85ce 100644 --- a/plugins/available/jekyll.plugins.bash +++ b/plugins/available/jekyll.plugins.bash @@ -41,11 +41,11 @@ editpost() { done less $TMPFILE read -p "Number of post to edit: " POST_TO_EDIT - if [ -z "$EDITOR" ] + if [ -z "$JEKYLL_EDITOR" ] then nano "${POSTS[$POST_TO_EDIT]}" else - "$EDITOR" "${POSTS[$POST_TO_EDIT]}" + "$JEKYLL_EDITOR" "${POSTS[$POST_TO_EDIT]}" fi } @@ -253,7 +253,7 @@ newpost() { # Open the file in your favorite editor - "$EDITOR" $FNAME + "$JEKYLL_EDITOR" $FNAME } function testsite() { -- 2.17.1