Added check for vim in newpost too.

pull/18/head^2
Mark Szymanski 2010-11-01 20:05:33 -05:00
parent 0097a1e3a8
commit 689afd9b3d
1 changed files with 7 additions and 1 deletions

View File

@ -5,10 +5,16 @@ then
alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
else
alias newentry="cd $JEKYLL_LOCAL_ROOT"
fi
# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog)
alias newpost="cd $JEKYLL_LOCAL_ROOT/_posts && $EDITOR ."
if [ $EDITOR = "vim"]
then
alias newpost="cd $JEKYLL_LOCAL_ROOT/_posts && $EDITOR ."
else
alias newpost="cd $JEKYLL_LOCAL_ROOT"
fi
# Build and locally serve the site