Added check to see if user is using vim with newentry alias.

pull/18/head^2
Mark Szymanski 2010-11-01 20:04:28 -05:00
parent afbda09a5f
commit 0097a1e3a8
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,10 @@
# Open the root of your site in your favorite editor # Open the root of your site in your vim or cd to it
alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ." if [ $EDITOR = "vim"]
then
alias newentry="cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
else
alias newentry="cd $JEKYLL_LOCAL_ROOT"
# Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog) # Open the _posts/ directory for making a new blog post (seperate from above alias because not everyone uses jekyll for a blog)