Code Review
/
common
/
bash_it.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
450a1d1
)
Implement JEKYLL_EDITOR variable
author
Mark Szymanski
<mrman208@me.com>
Sun, 3 Jul 2011 02:44:56 +0000
(21:44 -0500)
committer
Mark Szymanski
<mrman208@me.com>
Sun, 3 Jul 2011 02:44:56 +0000
(21:44 -0500)
plugins/available/jekyll.plugins.bash
patch
|
blob
|
history
diff --git
a/plugins/available/jekyll.plugins.bash
b/plugins/available/jekyll.plugins.bash
index
8efdd11
..
eff85ce
100644
(file)
--- 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() {