Implement JEKYLL_EDITOR variable
parent
450a1d1090
commit
e1a299eafb
|
|
@ -41,11 +41,11 @@ editpost() {
|
||||||
done
|
done
|
||||||
less $TMPFILE
|
less $TMPFILE
|
||||||
read -p "Number of post to edit: " POST_TO_EDIT
|
read -p "Number of post to edit: " POST_TO_EDIT
|
||||||
if [ -z "$EDITOR" ]
|
if [ -z "$JEKYLL_EDITOR" ]
|
||||||
then
|
then
|
||||||
nano "${POSTS[$POST_TO_EDIT]}"
|
nano "${POSTS[$POST_TO_EDIT]}"
|
||||||
else
|
else
|
||||||
"$EDITOR" "${POSTS[$POST_TO_EDIT]}"
|
"$JEKYLL_EDITOR" "${POSTS[$POST_TO_EDIT]}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -253,7 +253,7 @@ newpost() {
|
||||||
|
|
||||||
# Open the file in your favorite editor
|
# Open the file in your favorite editor
|
||||||
|
|
||||||
"$EDITOR" $FNAME
|
"$JEKYLL_EDITOR" $FNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
function testsite() {
|
function testsite() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue