Skip to content

Commit

Permalink
Removed old code and added better indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Szymanski committed Jan 2, 2011
1 parent 30fc71a commit 2c988b8
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions aliases/jekyll.aliases.bash
@@ -1,19 +1,12 @@
# Open the root of your site in your vim or builtin cd to it

if [[ $EDITOR = "vim" ]]
then alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
else alias newentry="builtin cd $JEKYLL_LOCAL_ROOT"
then
alias newentry="builtin cd $JEKYLL_LOCAL_ROOT && $EDITOR ."
else
alias newentry="builtin 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)

# if [ $editor = "vim" ]
# then
# alias newpost="builtin cd $jekyll_local_root/_posts && $editor ."
# else
# alias newpost="builtin cd $jekyll_local_root"
# fi

# Build and locally serve the site

alias testsite="builtin cd $JEKYLL_LOCAL_ROOT && jekyll --server --auto"
Expand Down

0 comments on commit 2c988b8

Please sign in to comment.